Nginx basic O & M

Source: Internet
Author: User
: 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

  1. Replace the old program file with a new program
  2. The master process number of the earlier version of kill-USR2. Old process automatically rename
  3. Execute the new binary program. Both processes process requests simultaneously.
  4. 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:

  1. Kill-HUP Old Master process number
  2. Kill-New Master process Number of QUIT

Retain new processes

  1. 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.

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.