linux 服务 启动 关闭 列表
##查看服務在每個級別的運行狀態
chkconfig --list
httpd ? ? ? ? ? 0:關閉 ?1:關閉 ?2:關閉 ?3:關閉 ?4:關閉 ?5:啟用 ?6:關閉
bluetooth ? ? ? 0:關閉 ?1:關閉 ?2:關閉 ?3:關閉 ?4:關閉 ?5:關閉 ?6:關閉
?
#停止 HTTPD服務 ?www.2cto.com ?
[root@zhangxx?etc]# service httpd stop
停止 httpd:[ ?確定 ?]
#啟動httpd服務
[root@zhangxx?etc]# service httpd start
啟動 httpd:[ ?確定 ?]
#重起HTTD服務
[root@zhangxx?etc]# service httpd restart
停止 httpd:[ ?確定 ?]
啟動 httpd:[ ?確定 ?]
#讓httpd 在機器啟動的時候在運行級別上停止
[root@zhangxx?etc]# chkconfig --level 345 httpd off
[root@zhangxx?etc]# chkconfig --list |grep httpd
httpd ? ? ? ? ? 0:關閉 ?1:關閉 ?2:關閉 ?3:關閉 ?4:關閉 ?5:關閉 ?6:關閉
#讓httpd 在機器啟動的時候在運行級別上啟動 ?www.2cto.com ?
[root@zhangxx etc]# chkconfig --level 345 httpd on
[root@zhangxx etc]# chkconfig --list |grep httpd
httpd ? ? ? ? ? 0:關閉 ?1:關閉 ?2:關閉 ?3:啟用 ?4:啟用 ?5:啟用 ?6:關閉
轉載于:https://www.cnblogs.com/carlo-jie/p/7493377.html
與50位技術專家面對面20年技術見證,附贈技術全景圖總結
以上是生活随笔為你收集整理的linux 服务 启动 关闭 列表的全部內容,希望文章能夠幫你解決所遇到的問題。