码迷,mamicode.com
首页 > 系统相关 > 详细

linux服务查看

时间:2017-06-02 22:09:11      阅读:225      评论:0      收藏:0      [点我收藏+]

标签:nbsp   查看   name   ini   防火墙   net   --   lin   pre   

 

(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


 

linux服务查看

标签:nbsp   查看   name   ini   防火墙   net   --   lin   pre   

原文地址:http://www.cnblogs.com/Berryxiong/p/6935116.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!