1,nginx随机启动
chkconfig nginx on
2,关闭随机启动
chkconfig nginx off
3,chkconfig 会自启动2345四个级别,如果自定义级别加上--level
chkconfig --level 35 nginx on
4,查看状态
chkconfig --list nginx
5,centos7 查看的方式
systemctl list-unit-files
本文介绍如何在 CentOS 系统中通过 chkconfig 命令配置 Nginx 的随机启动、关闭随机启动及自定义启动级别,并提供查看 Nginx 状态的方法。此外还介绍了 CentOS 7 中使用 systemctl 命令进行类似操作。
1,nginx随机启动
chkconfig nginx on
2,关闭随机启动
chkconfig nginx off
3,chkconfig 会自启动2345四个级别,如果自定义级别加上--level
chkconfig --level 35 nginx on
4,查看状态
chkconfig --list nginx
5,centos7 查看的方式
systemctl list-unit-files
4400
1万+
525

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