最近中文字幕mv2018在线高清,伊人久久综合色,一区二区亚洲精品国产精华液,又粗又爽高潮午夜免费视频,中文字幕亚洲码在线

最新活動 新春特惠

產(chǎn)品

硅云幫助文檔中心

搜索文檔

熱門搜索詞:

Cenetos系統(tǒng)服務(wù)器檢查/設(shè)置服務(wù)運行情況的命令

更新時間:2021-01-18?16:59 ?版本:v1.4
分享到: ? ?
我要反饋?
收藏 我的收藏

Centos系統(tǒng)如何啟動/關(guān)閉某項服務(wù)?如何設(shè)置服務(wù)自動啟動?本文將主要列舉CentOS系統(tǒng)服務(wù)器中常用的服務(wù)相關(guān)命令。


服務(wù)(service)啟動相關(guān)命令(以httpd服務(wù)為例)

因系統(tǒng)命令不同,命令也不同;一般Centos5.x/6.x使用舊命令、Centos7.x/8.x使用新命令:


任務(wù)舊命令新命令
使某服務(wù)開機自動啟動Chkconfig --level   3 httpd onsystemctl enable   httpd.service
使某服務(wù)開機不自動啟動chkconfig --level   3 httpd offsystemctl disable   httpd.service
檢查服務(wù)狀態(tài)service httpd   statussystemctl   status httpd.service (服務(wù)詳細信息)
systemctl   is-active httpd.service(僅顯示是否Active)
顯示所有已啟動的服務(wù)chkconfig --listsystemctl list-unit-files
systemctl   list-units --type=service
啟動某服務(wù)service httpd   startsystemctl start   httpd.service
停止某服務(wù)service httpd   stopsystemctl stop   httpd.service
重啟某服務(wù)service httpd   restartsystemctl restart   httpd.service



您對該文檔有什么建議?

您對該文檔的評分:

本文導(dǎo)航

服務(wù)(service)啟動相關(guān)命令(以httpd服務(wù)為例)

搜索文檔