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.