Linux notes (--nginx) smooth upgrade

Source: Internet
Author: User
If we are upgrading nginx, it is impossible to stop the server to upgrade in the production environment, so we need a smooth upgrade

Smooth upgrade: When a worker process is processing a request while a smooth upgrade is in progress, the worker processes continue processing and are stopped after processing. At the same time, Nginx will no longer receive new requests. However, during the upgrade process, when a new worker process is turned on, the request will be received normally.

The so-called new work process is the work process that was started after the upgrade.

View Nginx Version

.-V

Download a later version of Ngxin, unzip it, and then compile it, but do not install

cd ngin./configuremake

Do not perform the make install

Then enter the OBJS directory, here is a file nginx, with this file replace the original nginx/sbin/under the Nginx, the upgrade succeeded.

Note that before replacing Nginx with the past, you need to back up the old version of Nginx file in case

'). 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 Linux note (--nginx) smooth upgrade, including aspects of the content, I hope that the PHP tutorial interested in a friend helpful.

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