Nginx高端成长之路NginxLNMP

Nginx信号指令

2018-05-29  本文已影响7人  pijh

常见 nginx 信号指令,官网文档

常见指令

TERM, INT Quick shutdown
QUIT Graceful shutdown
KILL Halts a stubborn process
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

Here’s how to send the QUIT (Graceful Shutdown) signal to the NGINX master process:

$ kill -QUIT $( cat /usr/local/nginx/logs/nginx.pid )
上一篇 下一篇

猜你喜欢

热点阅读