centos7 设置 查看 开机 启动项(自启项)

查看开机自启项
centos7自启项已不用chkconfig改为:

systemctl list-unit-files

左边是服务名称,右边是状态,enabled是开机启动,disabled是开机不启动

当然还可以过滤一下 比如:查看启动项

systemctl list-unit-files | grep enable

设置开机自启项

systemctl enable redis

———————

https://blog.csdn.net/zyddj123/article/details/82497640



发表评论

您的电子邮箱地址不会被公开。

3 + 1 =