以下是自学it网--中级班上课笔记

            网址:www.zixue.it


nginx的信号控制

TERM, INT

Quick shutdown


QUIT


Graceful shutdown

优雅的关闭进程,即等请求结束后再关闭


HUP


Configuration reloadStart the new worker processes with

 a new configurationGracefully 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`

Kil; -USR1 `cat /xxx/path/log/nginx.pid`


Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐