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

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 --是一个管理系统单元的终端工具

相关文章:

  • 2022-12-23
  • 2021-09-21
  • 2021-10-05
  • 2022-12-23
  • 2022-12-23
  • 2021-09-29
  • 2022-12-23
猜你喜欢
  • 2022-02-25
  • 2021-11-16
  • 2021-08-10
  • 2021-08-05
  • 2021-09-17
  • 2022-12-23
  • 2021-09-30
相关资源
相似解决方案