📜  centos 从 systemctl 中删除服务 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:26.440000             🧑  作者: Mango

代码示例2
systemctl stop [servicename]
systemctl disable [servicename]
rm /etc/systemd/system/[servicename]
rm /etc/systemd/system/[servicename] # and symlinks that might be related
rm /usr/lib/systemd/system/[servicename] 
rm /usr/lib/systemd/system/[servicename] # and symlinks that might be related
systemctl daemon-reload
systemctl reset-failed