-centos7版本 系统服务管理

systemctl list-unit-files  (查看开机启动项)

systemctl list-unit-files  |  grep 程序名称   (查看某些服务开机启动状态)

systemctl  list-unit-files |  grep enable (查看哪些为开机启动服务)

-centos7版本

--查看正在运行的服务

systemctl | grep running

--列出运行的服务

initctl list

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

systemctl | grep apache2

--查看正在运行的服务

pstree

--查看正在运行的状态

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章