故如虹,知恩;故如月,知明
排名
6
文章
6
粉丝
16
评论
8
{{item.articleTitle}}
{{item.blogName}} : {{item.content}}
ICP备案 :渝ICP备18016597号-1
网站信息:2018-2024TNBLOG.NET
技术交流:群号656732739
联系我们:contact@tnblog.net
欢迎加群交流技术

nginx常用命令。nginx启动命令。nginx重启命令。nginx关闭命令。nginx测试配置文件是否正确。

5223人阅读 2018/12/14 15:55 总访问:3917884 评论:0 收藏:0 手机
分类: nginx


  启动命令:

  start nginx


  关闭命令:

  nginx -s stop
  nginx -s quit
  
  nginx -s stop与nginx -s quit区别

  Quit is a graceful shutdown. Nginx finishes serving the open connections before shutdown

  Quit 是一个优雅的关闭方式,Nginx在退出前完成已经接受的连接请求。

  Stop is a quick shutdown where is terminates in between serving the connection


  Stop 是快速关闭,不管有没有正在处理的请求。


  重启命令:

  nginx -s reload


重新打开日志文件

nginx -s reopen  


测试nginx配置文件是否正确

nginx -t -c /path/to/nginx.conf 


欢迎加群讨论技术,群:677373950(满了,可以加,但通过不了),2群:656732739

评价