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不起作用的情况
博客介绍了Nginx支持的多种信号,如TERM、INT用于快速关闭,QUIT用于优雅关闭等。还提到执行nginx -s reload时,可对比前后子进程PID,若PID未变,可能出现nginx reload不起作用的情况。
935

被折叠的 条评论
为什么被折叠?



