centos7 设置 查看 开机 启动项
–>
1.查看开机自启项
centos7自启项已不用chkconfig改为:
systemctl list-unit-files
左边是服务名称,右边是状态,enabled是开机启动,disabled是开机不启动。
当然还可以过滤一下 比如:查看启动项
systemctl list-unit-files | grep enable
2.设置开机自启项
systemctl enable redis
systemctl enable nginx.service
启动nginx
systemctl start nginx.service
结束nginx
systemctl stop nginx.service
重启nginx
systemctl restart nginx.service
原文链接:https://www.cnblogs.com/coffee_cn/p/11368293.html
本文来源 互联网收集,文章内容系作者个人观点,不代表 本站 对观点赞同或支持。如需转载,请注明文章来源,如您发现有涉嫌抄袭侵权的内容,请联系本站核实处理。
© 版权声明
文章版权归作者所有,未经允许请勿转载。