Nginx Start-up
nginx -c /path/to/nginx.conf
Nginx Restart
# 重新加载配置-s reload# 重新打开日志文件-s reopen# 平滑重启kill -HUP 主进程号
Nginx's Stop
# 从容停止kill -QUIT 主进程号# 快速停止kill -TERM 主进程号# 强制停止kill -9 主进程号
Nginx detection configuration is correct
nginx -t
Nginx Upgrade
- Replace old program files with new programs first
- KILL-USR2 The main process number of the legacy program. Old Process Auto Rename
- Executes the new version of the binaries. Two processes process requests at the same time.
- Kill-winch the old version main process number. The old process is not receiving requests at this time, and new processes are being processed
Below, you can keep a new or old process by observing whether it is running normally.
Keep the old process:
- Kill-hup the old master process number
- Kill-quit the new main process number
Keep New processes
- Kill-quit the old master process number
'). addclass (' pre-numbering '). Hide (); $ (this). addclass (' has-numbering '). Parent (). append ($numbering); for (i = 1; i <= lines; i++) {$numbering. Append ($ ('
'). Text (i)); }; $numbering. FadeIn (1700); }); });
The above describes the Nginx basic operations, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.