CentOS8:服務管理


 

 

開機啟動項管理

 

1、開啟服務開機自啟動:

---- systemctl    enable      服務名稱

---- systemctl    enable     mysqld

 

2、關閉服務開機自啟動:

---- systemctl    disable      服務名稱

---- systemctl    disable     mysqld

 

 

 

 

服務管理

 

1、服務開啟:

---- systemctl    start      服務名稱

---- systemctl    start     mysqld

 

2、服務關閉:

---- systemctl    stop      服務名稱

---- systemctl    stop     mysqld

 

3、服務重啟:

---- systemctl    restart      服務名稱

---- systemctl    restart     mysqld

 

4、查看服務:

 ---- systemctl    status      服務名稱

 ---- systemctl    status     mysqld

 


免責聲明!

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



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