1.查看开机自启项
centos7自启项已不用chkconfig改为:
systemctl list-unit-files
左边是服务名称,右边是状态,enabled是开机启动,disabled是开机不启动
2.设置开机自启项
systemctl enable redis
CentOS7开机自启管理
本文介绍在CentOS7中如何使用systemctl命令查看和设置开机自启服务,包括列出所有自启项的状态和具体操作步骤。
1.查看开机自启项
centos7自启项已不用chkconfig改为:
systemctl list-unit-files
左边是服务名称,右边是状态,enabled是开机启动,disabled是开机不启动
2.设置开机自启项
systemctl enable redis
1665
3066
963
1158

被折叠的 条评论
为什么被折叠?