重启nginx的方式都有哪些,ChatGPT给出了比较全面的答案

以上内容转载于ChatGPT中文网,动态生成

1.service nginx restart

2.systemctl restart nginx

3.cd /usr/local/nginx/sbin

停止:./nginx -s stop

启动: ./nginx

重新加载配置: ./nginx -s reload

注意:cd /usr/local/nginx/sbin 的 路径,如果不存在 可以通过 whereis nginx 来确定自己系统的具体路径

相关文章

评论可见,请评论后查看内容,谢谢!!!
 您阅读本篇文章共花了: