nginx信号控制
2016-03-27 22:21
579 查看
TERM, INT | Quick shutdown |
QUIT | Graceful shutdown 优雅的关闭进程,即等请求结束后再关闭 |
HUP | Configuration reload ,Start the new worker processes with a new configuration Gracefully shutdown the old worker processes 改变配置文件,平滑的重读配置文件 |
USR1 | Reopen the log files重读日志,在日志按月/日分割时有用 |
USR2 | Upgrade Executable on the fly平滑的升级 |
WINCH | Gracefully shutdown the worker processes优雅关闭旧的进程(配合USR2来进行升级) |
Kill -信号选项 nginx的主进程号
Kill -HUP 4873
Kill -信号控制 'cat/xxx/path/log/nginx.pid'
Kill -USR1 'cat /xxx/path/log/nginx.pid'
相关文章推荐
- Java笔记---通过nginx和FileZilla部署代码到云服务器
- Nginx增加模块
- 01-Nginx初探
- 使用Nginx+FFmpeg搭建HLS直播转码服务器
- Nginx学习笔记
- Nginx学习笔记——配置简单代理服务器
- Nginx Location配置总结
- Nginx
- 一次nginx 502 & mysql not contect 排错经历
- nginx日志切割
- Nginx+PHP+mysql
- window下搭建Nginx
- 配置nginx使之支持pathinfo
- nginx配置
- nginx下yaf路由始终定位到index/index/index下的解决方法
- nginx基本操作指令
- Nginx配置网站适配PC和手机
- 使用 Nginx 代理 Socket.io/WebSocket 及 负载均衡配置
- Apache、NGINX支持中文URL
- Windows下启动,关闭Nginx命令