linux 服务 启动 关闭 列表
##查看服務(wù)在每個(gè)級(jí)別的運(yùn)行狀態(tài)
chkconfig --list
httpd ? ? ? ? ? 0:關(guān)閉 ?1:關(guān)閉 ?2:關(guān)閉 ?3:關(guān)閉 ?4:關(guān)閉 ?5:啟用 ?6:關(guān)閉
bluetooth ? ? ? 0:關(guān)閉 ?1:關(guān)閉 ?2:關(guān)閉 ?3:關(guān)閉 ?4:關(guān)閉 ?5:關(guān)閉 ?6:關(guān)閉
?
#停止 HTTPD服務(wù) ?www.2cto.com ?
[root@zhangxx?etc]# service httpd stop
停止 httpd:[ ?確定 ?]
#啟動(dòng)httpd服務(wù)
[root@zhangxx?etc]# service httpd start
啟動(dòng) httpd:[ ?確定 ?]
#重起HTTD服務(wù)
[root@zhangxx?etc]# service httpd restart
停止 httpd:[ ?確定 ?]
啟動(dòng) httpd:[ ?確定 ?]
#讓httpd 在機(jī)器啟動(dòng)的時(shí)候在運(yùn)行級(jí)別上停止
[root@zhangxx?etc]# chkconfig --level 345 httpd off
[root@zhangxx?etc]# chkconfig --list |grep httpd
httpd ? ? ? ? ? 0:關(guān)閉 ?1:關(guān)閉 ?2:關(guān)閉 ?3:關(guān)閉 ?4:關(guān)閉 ?5:關(guān)閉 ?6:關(guān)閉
#讓httpd 在機(jī)器啟動(dòng)的時(shí)候在運(yùn)行級(jí)別上啟動(dòng) ?www.2cto.com ?
[root@zhangxx etc]# chkconfig --level 345 httpd on
[root@zhangxx etc]# chkconfig --list |grep httpd
httpd ? ? ? ? ? 0:關(guān)閉 ?1:關(guān)閉 ?2:關(guān)閉 ?3:啟用 ?4:啟用 ?5:啟用 ?6:關(guān)閉
轉(zhuǎn)載于:https://www.cnblogs.com/carlo-jie/p/7493377.html
與50位技術(shù)專家面對(duì)面20年技術(shù)見證,附贈(zèng)技術(shù)全景圖總結(jié)
以上是生活随笔為你收集整理的linux 服务 启动 关闭 列表的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 前端算法相关
- 下一篇: linux学习-用户的特殊 shell