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
使用 nginx -s 重新加载
nginx 支持以下信号:
HUP 是您正在寻找的,所以
sudo kill -HUP pid (nginx pid)
来源: http: //nginx.org/en/docs/control.html
通常nginx的init-script都有
reload
动作,即:/etc/init.d/nginx reload
/usr/local/etc/rc.d/nginx reload
service nginx reload
?PS 在 Windows 上不起作用。
不久前我写了一篇关于如何以零停机时间重新启动 nginx 的文章。这可能对您有帮助。
http://tumblelog.jauderho.com/post/101514948/restart-nginx-with-zero-downtime