systemctl 啟動/關閉/啟用/禁用服務


一、啟動服務

systemctl start test.service

二、停止服務

systemctl stop test.service

三、重啟服務

systemctl restart test.service

四、查看服務狀態

systemctl status test.service

五、設置開機自啟動服務

systemctl enable test.service

六、禁止開機自啟動服務

systemctl disable test.service

七、查看是否開機自啟動

systemctl is-enabled test.service

八、查看已啟動服務列表

systemctl list-unit-files|grep enabled

九、查看啟動失敗服務列表

systemctl --failed

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM