美文网首页
nginx开机启动配置

nginx开机启动配置

作者: together_66d6 | 来源:发表于2019-05-18 17:07 被阅读0次

在服务器上装了两个网页服务器nginx, apache,想要关闭nginx的开机自启。用到了以下命令:

systemctl disable nginx.service 关闭开机自启

systemctl enable nginx.service 开启开机自启

systemctl status nginx.service 查看状态

systemctl restart nginx.service 重启服务

systemctl list-units --type=service 查看所有服务

网上有介绍update-rc.d -f nginx remove可以来关闭自启,发现在ubuntu 18.04下面不行。

相关文章

网友评论

      本文标题:nginx开机启动配置

      本文链接:https://www.haomeiwen.com/subject/hcitzqtx.html