xinetd 错误 service/protocol 组合不在 /etc/services 中
Xinetd error service/protocol combination not in /etc/services
尝试创建一个简单的 xinetd 风格的服务器,而不需要首先创建一个完整的服务。我有以下文件位于 /etc/xinetd.d/myscript
:
service tester
{
disable = no
socket_type = stream
protocol = tcp
port = 8087
wait = no
user = root
server = /root/prog
}
但是我在重新启动 xinetd 时不断收到以下错误:
service/protocol combination not in /etc/services
解决方案是添加 type = UNLISTED
,如下所示,并在 https://www.redhat.com/archives/fedora-legacy-list/2004-October/msg00146.html
中讨论
service tester
{
disable = no
socket_type = stream
protocol = tcp
port = 8087
wait = no
user = root
server = /root/prog
type = UNLISTED
}
尝试创建一个简单的 xinetd 风格的服务器,而不需要首先创建一个完整的服务。我有以下文件位于 /etc/xinetd.d/myscript
:
service tester
{
disable = no
socket_type = stream
protocol = tcp
port = 8087
wait = no
user = root
server = /root/prog
}
但是我在重新启动 xinetd 时不断收到以下错误:
service/protocol combination not in /etc/services
解决方案是添加 type = UNLISTED
,如下所示,并在 https://www.redhat.com/archives/fedora-legacy-list/2004-October/msg00146.html
service tester
{
disable = no
socket_type = stream
protocol = tcp
port = 8087
wait = no
user = root
server = /root/prog
type = UNLISTED
}