久久青草精品A片狠狠,日韩欧美视频一区二区,亚洲国码AV日韩,国产精品黄在

如何使用systemctl命令

2015-11-27 17:22:09 13085

1.查看centos版本:

#cat /etc/redhat-release

 

2.我們對servicechkconfig兩個命令都不陌生,systemctl 是管制服務(wù)的主要工具, 它整合了chkconfig 與 service功能于一體。

    

    systemctl is-enabled servicename.service  #查詢服務(wù)是否開機(jī)啟動

    systemctl enable *.service  #開機(jī)運(yùn)行服務(wù)

    systemctl disable *.service  #取消開機(jī)運(yùn)行

    systemctl start *.service  #啟動服務(wù)

    systemctl stop *.service  #停止服務(wù)

    systemctl restart *.service  #重啟服務(wù)

    systemctl reload *.service  #重新加載服務(wù)配置文件   

    systemctl status *.service  #查詢服務(wù)運(yùn)行狀態(tài)

    systemctl –failed  #顯示啟動失敗的服務(wù)

    注:*代表某個服務(wù)的名字,如http的服務(wù)名為httpd

提交成功!非常感謝您的反饋,我們會繼續(xù)努力做到更好!

這條文檔是否有幫助解決問題?

非常抱歉未能幫助到您。為了給您提供更好的服務(wù),我們很需要您進(jìn)一步的反饋信息:

在文檔使用中是否遇到以下問題: