CentOS 啓動服務、開機啓動等

比如服務名稱爲:xxx.service


  CentOS7以前(兼容以後) CentOS7以後
啓動服務 service xxx start systemctl start xxx
停止服務 service xxx stop systemctl stop xxx
重啓服務  service xxx restart systemctl restart xxx
設置開機自啓動  chkconfig xxx on 或者 chkconfig --add xxx systemctl enable xxx
取消開機自啓動  chkconfig xxx off 或者 chkconfig --del xxx systemctl disable xxx





發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章