jins-note

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

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-21
  • 2021-09-18
  • 2021-12-06
  • 2021-07-07
  • 2021-11-19
  • 2021-11-09
猜你喜欢
  • 2021-07-10
  • 2021-09-03
  • 2021-09-11
  • 2022-12-23
  • 2020-03-27
  • 2021-12-04
  • 2022-12-23
相关资源
相似解决方案