Ubuntuで `inetd`と `/etc/inetd.conf`を置き換えるものは何ですか?

Ubuntuで `inetd`と `/etc/inetd.conf`を置き換えるものは何ですか?

inetdに記録されたサービスのサービススケジューラです/etc/inetd.conf

Lubuntu 18.04では、noは/etc/inetd.conf何もps -A | grep inetd返しません。inetdとの代替は何ですか/etc/inetd.conf

私はそうではありません/etc/xinetd*

ありがとうございます。

ベストアンサー1

多くの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

おすすめ記事