手机看片精品高清国产日韩,色先锋资源综合网,国产哺乳奶水91在线播放,乱伦小说亚洲色图欧洲电影

如何使用centos7.X中的systemctl命令

2016-12-17 17:06:43 7515

1.查看centos版本:

#cat /etc/redhat-release

blob.png

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

blob.png

systemctl is-enabled iptables.service

systemctl is-enabled servicename.service  #查詢服務是否開機啟動

systemctl enable *.service  #開機運行服?

systemctl disable *.service  #取消開機運行

systemctl start *.service  #啟動服務

systemctl stop *.service  #停止服務

systemctl restart *.service  #重啟服務

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

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

systemctl failed  #顯示啟動失敗的服務


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

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

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

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