Nginx Version Upgrade

Source: Internet
Author: User

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

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.