这篇文章将为大家详细讲解有关nginx如何关闭/重启/启动,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。

关闭
service nginx stop
systemctl stop nginx
启动
service nginx start
systemctl start nginx
重启
service nginx reload
systemctl restart nginx
随系统启动自动运行
systemctl enable nginx
禁止随系统启动自动运行
systemctl disable nginx
知识点扩展:
首先利用配置文件启动nginx。
命令: nginx -c /usr/local/nginx/conf/nginx.conf
重启服务: service nginx restart
2. 快速停止或关闭Nginx:nginx -s stop
3. 正常停止或关闭Nginx:nginx -s quit
4. 配置文件修改重装载命令:nginx -s reload
关于“nginx如何关闭/重启/启动”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,使各位可以学到更多知识,如果觉得文章不错,请把它分享出去让更多的人看到。

售后响应及时
7×24小时客服热线
数据备份
更安全、更高效、更稳定
价格公道精准
项目经理精准报价不弄虚作假
合作无风险
重合同讲信誉,无效全额退款