Nginx version upgrade in Ubuntu

Source: Internet
Author: User
Today, we upgraded the Nginx version of the server to the latest stable version 1.6.2. the Linux server operating system is 64-bit Ubuntu12.04. Write down the upgrade process and first download Nginx, this upgrade directly uses ssh for remote upgrade, so all operations are performed under the shell, and all operations are performed using commands, except for watching, the actually needed commands are just a few upgrades # download and decompress nginx $ curlhttp: // nginx.org/download/n

Today, we upgraded the Nginx version of the server to the latest stable version 1.6.2. the Linux server operating system is 64-bit Ubuntu 12.04. Write down the upgrade process and download Nginx first, this upgrade directly uses ssh for remote upgrade, so all operations are performed under the shell, and all operations are performed using commands. In fact, in addition to watching, there are only a few commands actually needed.

Upgrade process

# Download and decompress 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
$ Nginx-1.6.2 cd
# View the current nginx compilation Parameters
$ Nginx-V
# Output configure arguments: -- prefix =/usr/local/nginx
#, Linux does not need to add
# Add compilation Parameters
$./Configure -- prefix =/usr/local/nginx
# Compile
$ Make
# If there is no problem, it should be compiled successfully. I reported an error during local compilation. My system is mac 10.10, and finally. /Add -- with-cc-opt =-Wno-deprecated-declarations in configure, and then the compilation will be fine. If the compilation is successful, ignore
# Stop nginx and back up it.
$ Nginx-s stop
$ Cp/usr/local/nginx/sbin/nginx/usr/local/nginx/sbin/nginx-1.6
# Overwrite the compiled nginx binary file to the current file
$ Cp-f./objs/nginx/usr/local/nginx/sbin/nginx
$ Start nginx
$ Nginx
$ View nginx version
$ Nginx-v
# Output nginx version: nginx/1.6.2

-------------------------------------- Split line --------------------------------------

CentOS 6.2 Deployment Nginx + MySQL + PHP http://www.linuxidc.com/Linux/2013-09/90020.htm

Build a WEB server http://www.linuxidc.com/Linux/2013-09/89768.htm with Nginx

Build a Web server http://www.linuxidc.com/Linux/2013-09/89692.htm Based on Linux6.3 + Nginx1.2 + PHP5 + MySQL5.5

Nginx Performance Tuning http://www.linuxidc.com/Linux/2013-09/89656.htm in CentOS 6.3

Configure Nginx to load ngx_pagespeed module http://www.linuxidc.com/Linux/2013-09/89657.htm under CentOS 6.3

CentOS 6.4 install and configure Nginx + Pcre + php-fpm http://www.linuxidc.com/Linux/2013-08/88984.htm

Nginx installation configuration use notes http://www.linuxidc.com/Linux/2014-07/104499.htm

Nginx log filtering using ngx_log_if does not record specific log http://www.linuxidc.com/Linux/2014-07/104686.htm

-------------------------------------- Split line --------------------------------------

Nginx details: Click here
Nginx: Click here

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

This article permanently updates the link address: Http://www.linuxidc.com/Linux/2014-12/110035.htm

Related Article

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.