Ubuntu14.04 install the latest stable version Nginx1.6.0

Source: Internet
Author: User
Ubuntu14.04 default installation is Nginx1.4.6 if you have installed, please first uninstall sudoapt-getremoveng.pdf latest stable version Nginx1.6.0 provided in ubuntuupdatesppa library, web site http://www.ubuntuupdates.org/ppa/nginx? Dist = trusty Installation Method: sudoadd-apt-repositoryppa: nginx/

Ubuntu14.04 Nginx 1.4.6 is installed by default.

If it has been installed, uninstall it first.
Sudo apt-get remove nginx
The latest stable version of Nginx 1.6.0 in ubuntuupdates ppa library provided, web site http://www.ubuntuupdates.org/ppa/nginx? Dist = trusty

Installation Method:
Sudo add-apt-repository ppa: nginx/stable
Sudo apt-get update
Sudo apt-get install nginx

View nginx version

Nginx-v
Nginx version: nginx/1.6.0

----------------------------------- Another example -----------------------------------

I. Check host information

Root @ slave :~ # Cat/etc/issue
Ubuntu 12.04.1 LTS \ n \ l

Root @ slave :~ # Uname-
Linux slave 3.2.0-29-generic # 46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

PS: The operation Editor only tests the environment above.

Ii. Update apt Source

Log on to the nginx official website and click download stable version on the right to find the response system and copy the deb connection to add it to the source configuration file.

Eg:

Copy
Deb http://nginx.org/packages/mainline/ubuntu/ codename nginx
The deb-src http://nginx.org/packages/mainline/ubuntu/ codename nginx

Add to the/etc/apt/sources. list file

Download and import/

Wget http://nginx.org/keys/nginx_signing.key
Sudo apt-key add nginx_signing.key

Update apt-get Source
Apt-get update

Install nginx

Root @ slave :~ # Apt-get install nginx
Reading the package list... complete
Analyzing the dependency tree of the software package
Reading status information... complete
The following [new] software packages will be installed:
Nginx
0 software packages are upgraded, 1 new software package is installed, 0 software packages are to be uninstalled, and 154 software packages are not upgraded.
Download the 462 kB software package.
After decompression, 1,030 kB of extra space will be consumed.
Get: 1 http://nginx.org/packages/mainline/ubuntu/ precise/nginx amd64 1.7.4-1 ~ Precise [462 kB]
Download 462 kB, which takes 2 seconds (207 kB/s)
Selecting previusly unselected package nginx.
(Reading the database... the system currently has 49098 files and directories installed .)
Extracting nginx (from.../nginx_1.7.4-1 ~ Precise_amd64.deb )...
----------------------------------------------------------------------

Thanks for using nginx!

Please find the official documentation for nginx here:
* Http://nginx.org/en/docs/

Commercial subscriptions for nginx are available on:
* Http://nginx.com/products/

----------------------------------------------------------------------
Processing the trigger for ureadahead...
Ureadahead will be reprofiled on next reboot
Setting nginx (1.7.4-1 ~ Precise )...
Check nginx version
Root @ slave :~ # Nginx-v
Nginx version: nginx/1.7.4

-------------------------------------- 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-08/105422.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.