查看当前正在运行的服务

Centos6版本

service --status-all 

查看当前服务器所有服务

 

service --status-all | grep running

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

 

service --status-all | grep httpd 或 service httpd status

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

 

chkconfig --list

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

 

Centos7版本

systemctl | grep running

查看正在运行的服务(常用)

 

initctl list

列出运行的服务

 

systemctl | grep apache2

查看指定服务运行状态

 

pstree

查看正在运行的服务

 

chkservice

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

 

转载于:https://www.cnblogs.com/gcixx/p/11145436.html

posted @ 2020-09-20 16:09  努力吧阿团  阅读(794)  评论(0)    收藏  举报