Centos系统中查看并管理开机启动项

1、查看所有启动项:

systemctl list-unit-files

2、查看已启用的开机启动项:

systemctl list-unit-files | grep enabled

3、设置开机启动项:

systemctl enable [$service_name]

4、取消开机启动项:

systemctl disable [$service_name]

发表评论

邮箱地址不会被公开。 必填项已用*标注