Linux notes (69) -- nginx smooth upgrade

Source: Internet
Author: User
: This article mainly introduces Linux notes (69)-nginx smooth upgrade. For more information about PHP tutorials, see. If we want to upgrade nginx, we cannot stop the server in the production environment to upgrade it. Therefore, we need to smoothly upgrade it.

Smooth upgrade: if a worker process processes a request during a smooth upgrade, the worker process will continue to process the request and the process will be stopped. At the same time, nginx will not receive new requests. However, during the upgrade process, the new worker process will normally receive requests after it is enabled.

The so-called new working process is the working process started after the upgrade.

View nginx version


Download ngxin of a later version, decompress it, and compile it, but do not install

Cd ngin./configuremake

Do not execute make install

Then go to the objs directory, where there is a file nginx, which replaces the original nginx/sbin/with the file, and the upgrade is successful.

Note: Before you replace nginx with the previous version, you must back up the nginx file of the old version to prevent other

'). 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 Introduces Linux notes (69)-nginx smooth upgrade, including some content, and hope to be helpful to friends who are interested in PHP tutorials.

    Related Article

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