Ubuntu systemctl 如何啟動、關閉、啟用/禁用服務


啟動服務:systemctl start vsftpd.service

關閉服務:systemctl stop vsftpd.service

重啟服務:systemctl restart vsftpd.service

顯示服務的狀態:systemctl status vsftpd.service

在開機時啟用服務:systemctl enable vsftpd.service

在開機時禁用服務:systemctl disable vsftpd.service

查看服務是否開機啟動:systemctl is-enabled vsftpd.service

查看已啟動的服務列表:systemctl list-unit-files|grep enabled

查看啟動失敗的服務列表:systemctl --failed

 

 

 

centos8 :

查看防火牆狀態:systemctl status firewalld.service

開啟防火牆:systemctl start firewalld.service

關閉防火牆:systemctl stop firewalld.service

禁用防火牆:systemctl disable firewalld.service

 

 

 

systemctl service update-rc.d三者的區別

https://blog.csdn.net/qq_37993487/article/details/79868857 

 


免責聲明!

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



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