One - One Code All

Blog Content

linux系统查看当前正在运行的服务

Linux-Mac   2008-07-16 00:18:35


linux系统查看当前正在运行的服务

--查看当前服务器所有服务


service --status-all 


 


-- 查看当前所有正在运行的服务

service --status-all | grep running


 


--查看指定服务运行状态如 httpd

service --status-all | grep httpd


或 service httpd status


--查看系统启动自启动的服务列表

chkconfig --list


 


 


--centos版本


--查看正在运行的服务

systemctl | grep running


--列出运行的服务

initctl list


--查看指定服务运行状态

systemctl | grep apache2


--查看正在运行的服务

pstree


--查看正在运行的状态

chkservice --是一个管理系统单元的终端工具



上一篇:linux循环执行某条命令
下一篇:Linux关机命令详解

The minute you think of giving up, think of the reason why you held on so long.