Linux 系统中所有的自启动服务都会在/etc/systemd/system/multi-user.target.wants/目录下生成相应的【自启动配置文件】,所以我们只要查看该目录即可得知全部的自启动服务。

ls -l /etc/systemd/system/multi-user.target.wants/


扩展知识

1、设置自启动服务(以 nginx 为例)

systemctl enable nginx

1、关闭自启动服务(以 nginx 为例)

systemctl disable nginx

更多推荐

Linux查看系统自启动服务