--查看當前服務器所有服務
service --status-all
-- 查看當前所有正在運行的服務
service --status-all | grep running
--查看指定服務運行狀態如 httpd
service --status-all | grep httpd
或 service httpd status
--查看系統啟動自啟動的服務列表
chkconfig --list
--centos7版本
--查看正在運行的服務
systemctl | grep running
--列出運行的服務
initctl list
--查看指定服務運行狀態
systemctl | grep apache2
--查看正在運行的服務
pstree
--查看正在運行的狀態
chkservice --是一個管理系統單元的終端工具