Ubuntu systemctl 查看管理系統啟動項


Ubuntu systemctl 查看系統啟動項

列出所有啟動項: 

sudo systemctl list-unit-files

 會列出開啟的和未開啟的:

使用grep過濾一下開啟的grep enabled
sudo systemctl list-unit-files | grep enabled

查看.service文件的路徑,及內容 

sudo systemctl status openresty.service

禁用開機啟動:

sudo systemctl disable mongodb.service
sudo systemctl disable nginx.service
sudo systemctl disable redis-server.service

停止已經開啟的服務:

sudo systemctl stop mongodb.service
sudo systemctl stop nginx.service
sudo systemctl stop redis-server.service

 

圖形化界面操作方法:

https://www.cnblogs.com/jins-note/p/9513136.html

  

參考:
https://blog.csdn.net/caiqiiqi/article/details/99741513
https://forum.ubuntu.org.cn/viewtopic.php?f=48&t=47842

 


免責聲明!

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



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