文章内容
2020/10/11 16:22:43,作 者: 黄兵
Ubuntu如何删除服务
最近在Ubuntu 16.04上面有些服务已经不再使用了,留着不仅占资源,同时也不便于管理。
在Ubuntu上删除服务的具体步骤如下:
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
这两个命令在Ubuntu18.04中没有找到相关位置:
rm /usr/lib/systemd/system/[servicename] rm /usr/lib/systemd/system/[servicename] # and symlinks that might be related
可以不用理会。
参考资料:
评论列表