获取某些旧 Linux 操作系统上的服务名称

获取某些旧 Linux 操作系统上的服务名称
# cat /etc/system-release
CloudLinux Server release 6.<...>

# systemctl
-bash: systemctl: command not found

# service --status-all
<service description> is running
<some service description> is running
...
Table: filter
Chain INPUT (policy ACCEPT)
num  target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
num  target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
num  target     prot opt source               destination

Usage: ipaliases {start|stop|restart|reload}
Table: filter
Chain INPUT (policy ACCEPT)
num  target     prot opt source               destination
1    cP-Firewall-1-INPUT  all  --  0.0.0.0/0            0.0.0.0/0

Chain FORWARD (policy ACCEPT)
num  target     prot opt source               destination
1    cP-Firewall-1-INPUT  all  --  0.0.0.0/0            0.0.0.0/0
...  

没有什么像一些“正常”结果一样这里,看看iptables片段就知道了!我怎样才能找到服务的真实名称而不是其花哨的描述?

答案1

您可以尝试列出旧系统上的服务的一件事是:

ls /etc/init.d/*

相关内容