nginx支持以下信号
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
执行以下命令:
sudo kill -HUP pid(nginx pid)
执行nginx -s reload时可进行前后子进程PID进行对比,如果发现没有变可能是就会发生nginx reload不起作用的情况