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.