“Systemctl 常用命令”的版本间的差异
跳到导航
跳到搜索
小 (导入1个版本) |
|||
第12行: | 第12行: | ||
=参考= | =参考= | ||
+ | [https://stage.gp.idealisan.com/typora/linux%E6%9F%A5%E7%9C%8B%E6%89%80%E6%9C%89%E5%BC%80%E6%9C%BA%E5%90%AF%E5%8A%A8%E9%A1%B9.html 如何查看linux开机启动项目] | ||
+ | |||
+ | [https://code2life.top/2017/12/16/0009-linux-systemd-startup/ Systemd与开机自启动] | ||
+ | |||
[ http://man.linuxde.net/systemctl systemctl命令 ] | [ http://man.linuxde.net/systemctl systemctl命令 ] | ||
[https://linux.cn/article-5926-1.html systemctl 命令完全指南] | [https://linux.cn/article-5926-1.html systemctl 命令完全指南] | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | [[category:devops]] |
2023年8月9日 (三) 13:09的最新版本
如何激活服务并在启动时启用或禁用服务(即系统启动时自动启动服务) systemctl is-active ssh.service # systemctl enable ssh.service # systemctl disable ssh.service 如何屏蔽(让它不能启动)或显示服务(如 httpd.service) # systemctl mask httpd.service ln -s '/dev/null' '/etc/systemd/system/httpd.service' # systemctl unmask httpd.service rm '/etc/systemd/system/httpd.service'
参考
[ http://man.linuxde.net/systemctl systemctl命令 ]