1. 程式人生 > >【Nginx】訊號量

【Nginx】訊號量

TERM, INT

Quick shutdown

 

 

QUIT

Graceful shutdown

優雅的關閉程序,即等請求結束後再關閉

KILL

Halts a stubborn process

HUP

Configuration reloadStart the new worker processes with a new configurationGracefully shutdown the old worker processes

改變配置檔案,平滑的重讀配置檔案

USR1

Reopen the log files

重讀日誌,在日誌按日、月分割時有用

USR2

Upgrade Executable on the fly

平滑的升級

WINCH

Gracefully shutdown the worker processes

優雅關閉舊的程序,配合user2來進行升級