(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


 

相关文章:

  • 2021-10-06
  • 2022-02-07
  • 2022-02-09
  • 2021-12-16
  • 2022-02-06
  • 2021-11-24
  • 2021-10-09
  • 2021-05-16
猜你喜欢
  • 2021-12-14
  • 2022-12-23
  • 2021-12-28
  • 2021-12-18
  • 2021-12-18
  • 2021-07-17
相关资源
相似解决方案