Seamless nginx upgrade

Source: Internet
Author: User

Introduction: This is a detailed page for seamless nginx upgrade. It introduces the knowledge, skills, experience, and some PHP Source Code related to PhP.

Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 330441 'rolling = 'no'>

Http://nginx.org/en/download.html
Wget http://nginx.org/download/nginx-0.9.7.tar.gz

First back up/usr/local/webserver/nginx/CONF/nginx. conf

#/Usr/local/webserver/nginx/sbin/nginx-V
Nginx/0.8.15

---- Installation Configuration

Tar zxvf nginx-0.9.7.tar.gz

CD nginx-0.9.7

./Configure -- user = WWW -- group = WWW -- prefix =/usr/local/webserver/nginx -- with-http_stub_status_module -- with-http_ssl_module

Then make, but do not make install

Back up old nginx files
MV/usr/local/webserver/nginx/sbin/nginx. Old

After compilation, there is an nginx execution file under the objs directory. After the nginx CP under the new objs is written to sbin, execute:
CP objs/nginx/usr/local/webserver/nginx/sbin/nginx

Run the/usr/local/webserver/nginx/sbin/nginx-t test.

---- Start a new one and turn off the old one
Change nginx. PID to nginx. PID. oldbin and start the new nginx
# Kill-usr2 'cat/usr/local/webserver/nginx. pid'
Exit the old one.
# Kill-Quit 'cat/usr/local/webserver/nginx. PID. oldbin'

---- The upgrade is complete.
#/Usr/local/webserver/nginx/sbin/nginx-V

More articles on "seamless nginx upgrade"

Love J2EE follow Java Michael Jackson video station JSON online tools

Http://biancheng.dnbcw.info/php/330441.html pageno: 11.

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.