Nginx Version Upgrade
Today, the server's Nginx version to upgrade to the latest stable version of 1.6.2, the server operating system is ubuntu12.4 64-bit, write the upgrade process, first download nginx, this upgrade directly with SSH remote upgrade, so all operations are under the shell, All operations are command, in fact, in addition to watching, the real need for the command is just a few
Upgrade process
# download Unzip nginx$ Curl http://nginx.org/download/nginx-1.6.2.tar.gz > nginx-1.6.2.tar.gz$ tar zxvf nginx-1.6.2.tar.gz$ CD nginx-1.6.2# View current Nginx compilation parameters $ nginx-v# Output Configure arguments:--prefix=/usr/local/nginx#, Linux do not add # Plus compile parameters $./configure- -prefix=/usr/local/nginx # Compile $ make# If there is no problem, it should be compiled successfully, I am in the native compilation error, my system is Mac 10.10, finally./configure plus--with-cc-opt=- Wno-deprecated-declarations, and then compile the problem, if the compilation is successful ignore # first stop the Nginx, and then back up the $ nginx-s stop$ cp/usr/local/nginx/sbin/nginx/usr/ local/nginx/sbin/nginx-1.6# put the Nginx binary file that was just compiled, overwriting the file $ cp-f now./objs/nginx/usr/local/nginx/sbin/nginx$ Start nginx$ nginx$ View Nginx version $ nginx-v# output Nginx version:nginx/1.6.2
OK, Upgrade complete
Nginx Version Upgrade