ps aux | grep nginx # View nginx process, to see the nginx pid, you have to use this command to view
********************* nginx signal ***** ******************
the following are pid use nginx's master process pid
1. -INT the kill pid # Quick kill the shutdown process
2. kill -QUIT pid #graceful shutdown gracefully shutdown process, ie after the end of the request and so close. (For example, someone downloading files, and so he downloaded and then kill)
3. the kill -HUP pid # graceful restart, when the modified configuration file without restarting nginx (Apache must be restarted after modifying the configuration file to take effect). Use this command.
4. kill -USER1 pid # split logs will be used to (https://www.php.cn/code/23825.html split logs need to see this section, some knowledge is not easy to take notes)
5. the kill - HUP `cat logs / nginx.pid` #cat logs / nginx.pid returned pid is the main process of nginx, the benefits of using this is do not always go to see the nginx's pid.
nginx signal
Guess you like
Origin www.cnblogs.com/bneglect/p/11330236.html
Ranking