开机启动项查看适用于比较新的Linux发行版,CentOS/Debian/Ubuntu等只要是使用systemd管理的都可以。

查看开机启动项的服务:

systemctl list-unit-files --type=service|grep enabled

如何禁用httpd/apache服务开机启动:

sudo systemctl disable httpd.service

如何启用httpd/apache服务开机启动:

sudo systemctl enable httpd.service

如何启用nginx服务开机启动:

sudo systemctl enable nginx.service

来源:https://bbs.vpser.net/forum.php?mod=viewthread&tid=25301&highlight=Debian

标签: nginx, debian, systemd, CentOS, Ubuntu, apache, httpd

添加新评论