Reference article: [Http://www.2cto.com/os/201305/208921.html][6]
1, download the new Nginx package
Download address: [Http://nginx.org][6]
2. Put Nginx in the/USR/SRC directory
3. Compiling new Nginx
tar zxvf nginx-1.10.1.tar.gzcd nginx-1.10.1.tar.gz.--prefix=/usr/local--with-stream--with-cc=/usr/sfw/bin/gccmake
Note: Make is OK here, do not make install. Where –prefix=/usr/local/nginx is the original installation Nginx directory.
4. Replace the original Nginx execution file
After compiling, in the nginx-1.10.1 folder under the Objs directory has an nginx executable file is the new execution file.
# 备份原理的nginx执行文件mv /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.old# 复制新的nginx执行文件到安装目录下cp objs/nginx /usr/local/nginx/sbin/nginx
5, check whether the success
# 显示nginx是否运行正常/usr/local/nginx/sbin/nginx -t# 显示nginx版本信息/usr/local/nginx/sbin/nginx -V
'). 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 Nginx seamless upgrade, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.