systemctl disable(remove)

systemctl stop [servicename]
systemctl disable [servicename]
rm /etc/systemd/system/[servicename]
rm /etc/systemd/system/[systemname] symlinks that might be related
systemctl daemon-reload
systemctl reset-failed
systemctl status [servicename]

example

systemctl stop nginx
systemctl disalbe nginx


systemctl stop docker
systemctl disable docker

查看服务配置文件内容和位置

systemctl cat dandanblog.api   # 查看服务配置文件内容和位置

systemctl cat zkeacms

journalctl 查看日志

cd /etc/systemd/system/

journalctl -n 10 //查看最近10条日志

results matching ""

    No results matching ""