inetd是用于记录在/etc/inetd.conf中的服务的服务分配器。
在Lubuntu18.04中,没有/etc/inetd.conf。ps -A | grep inetd什么也不返回。inetd和/etc/inetd.conf的替代品是什么?
我没有/etc/xinetd*。
谢谢。
发布于 2019-02-14 01:12:26
许多Linux使用xinetd,因此文件是/etc/xinetd.conf。但是,通常最好将服务放入/etc/xinetd.d中的文件中
例如,文件/etc/xinetd.d/time可能包含
# This is the tcp version.
service time
{
disable = yes
type = INTERNAL
id = time-stream
socket_type = stream
protocol = tcp
user = root
wait = no
}
# This is the udp version.
service time
{
disable = yes
type = INTERNAL
id = time-dgram
socket_type = dgram
protocol = udp
user = root
wait = yes
}在我的机器上,我有一个用于nntp的leafnode条目:
% cat /etc/xinetd.d/nntp
service nntp
{
disable = no
socket_type = stream
wait = no
user = news
flags = IPv6
server = /usr/local/leafnode/sbin/leafnode
}如果没有安装xinetd,那么您只需安装它;例如sudo apt-get install xinetd
https://unix.stackexchange.com/questions/500524
复制相似问题