systemd相關

移除服務

stop [servicename]
1
2
3
4
5
6
7
systemctl disable [servicename]
sudo trash /etc/systemd/system/[servicename]
sudo trash /etc/systemd/system/[servicename] # and symlinks that might be related
sudo trash /usr/lib/systemd/system/[servicename]
sudo trash /usr/lib/systemd/system/[servicename] # and symlinks that might be related
systemctl daemon-reload
systemctl reset-failedbash

https://superuser.com/a/936976

Author

Steven

Posted on

2023-11-02

Updated on

2025-01-14

Licensed under

Comments