Apache 有一个graceful选项,可以在http.conf不重新启动 Apache 的情况下扫描修改。nginx呢?
Raz*_*que 82
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
Run Code Online (Sandbox Code Playgroud)
HUP 就是你要找的,所以 sudo kill -HUP pid (nginx pid)
来源:http : //nginx.org/en/docs/control.html
Sav*_*btz 23
通常nginx的init-script有reload动作,即:
/etc/init.d/nginx reload/usr/local/etc/rc.d/nginx reload| 归档时间: |
|
| 查看次数: |
77461 次 |
| 最近记录: |