: This article mainly introduces the basic O & M of nginx. if you are interested in the PHP Tutorial, refer to it. Nginx startup
nginx -c /path/to/nginx.conf
Nginx restart
# Reload and Configure nginx-s reload # re-open the log file nginx-s reopen # smoothly restart kill-HUP master process number
Stop nginx
# STOP kill-QUIT master process no. # STOP kill-TERM Master process no. # force stop kill-9 Master process no.
Check whether the nginx configuration is correct
nginx -t
Nginx upgrade
- Replace the old program file with a new program
- The master process number of the earlier version of kill-USR2. Old process automatically rename
- Execute the new binary program. Both processes process requests simultaneously.
- Kill-WINCH Old Master process number. At this time, the old process does not receive the request and has a new process to process it.
Next, you can choose to retain the new process or the old process by observing whether the process runs normally.
Retain old processes:
- Kill-HUP Old Master process number
- Kill-New Master process Number of QUIT
Retain new processes
- Kill-Old Master process Number of QUIT
'). AddClass ('pre-numbering '). hide (); $ (this ). addClass ('Has-numbering '). parent (). append ($ numbering); for (I = 1; I <= lines; I ++) {$ numbering. append ($ ('
'). Text (I) ;}; $ numbering. fadeIn (1700) ;}) ;}; script
The above describes the basic O & M of nginx, including some content, and hope to help those who are interested in the PHP Tutorial.