Ubuntu/CentOS查看系统启动项
生活随笔
收集整理的這篇文章主要介紹了
Ubuntu/CentOS查看系统启动项
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
systemctl list-unit-files
參考:
https://forum.ubuntu.org.cn/viewtopic.php?f=48&t=478420
會列出開啟的和未開啟的:
使用grep過濾一下開啟的grep enabled
然后使用
查看這個.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總結
以上是生活随笔為你收集整理的Ubuntu/CentOS查看系统启动项的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Points、inches和EMUs:O
- 下一篇: ubuntu安装搜狗拼音输入法及安装后没