您的位置:首页 > 运维架构 > Nginx

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'
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: