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
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