树莓派|Ubuntu|Debian关闭开机启动项


首先用以下命令显示出开启的和未开启的程序

systemctl list-unit-files

然后使用grep过滤一下开启的:

systemctl list-unit-files |grep enabled

然后查看.service的文件路径及内容

system status xxx.service

在 Loaded: loaded(/lib/systemd/system/...)里可以看到到该service文件路径

最后禁用开机启动

sudo systemctl disable xxx.service