linux服务查看

 

(1)#service servicename  status
比如查看防火墙:#service iptables status

(2)#chkconfig --list |grep 服务名
比如查看telnet:#chkconfig --list |grep telnet

如果service和chkconfig 找不到,可以试试/sbin/service和/sbin/chkconfig

(3)如果是ubuntu的系统,可以用/etc/init.d/servicename status查看当前状态


(4)查看所有服务的状态
 #/sbin/service --status-all


 

posted @ 2017-06-02 20:52  Big_Foot  阅读(610)  评论(0编辑  收藏  举报