linux之nginx-mysql设置开机自启动
2022-03-18Linux
linux之nginx-mysql设置开机自启动
linux之nginx-mysql设置开机自启动
设置开机自启动
chkconfig --listt 列出非系统
systemctl list-unit-files 列出系统的
systemctl disable firewalld //禁止防火墙开机自启动

非系统
chkconfig --add nginx 添加到 开机管理列表
如果报错

[root@localhost ~]# vi /etc/init.d/nginx

[root@localhost ~]# chkconfig --add nginx ---添加
[root@localhost /]# chkconfig --list --查看

chkconfig nginx on 设置开机自启动
[root@localhost /]# chkconfig --list --查看

那么,恭喜你,设置完毕!
很赞哦! ()
