Skip to content
On this page
🎨 作者:Jacinda 📔 阅读量:

Systemd

简单的学习一下service相关命令

重新加载服务

bash
systemctl daemon-reload

启动服务

bash
systemctl start xxx.service

停止服务

bash
systemctl start xxx.service

设置开机自动启动服务

bash
systemctl enable xxx.service

取消开机自动启动服务

bash
systemctl disable xxx.service

查看所有服务

无论是活动的,运行的,退出的还是失败的

bash
systemctl list-units --type=service
bash
systemctl --type=service

查看服务详细信息

bash
systemctl -l status xxxx.service