Install nginx stable version in Ubuntu1404

Source: Internet
Author: User
: This article describes how to install stable nginx in Ubuntu1404. if you are interested in the PHP Tutorial, refer to it. Because my system is just installed and there are no packages!

1: update all packages first

 sudo apt-get update

2: Jump to the system's Downloads folder (I downloaded it to the Downloads folder)

Cd/home/user name/Downloads/

3: Download stable nginx from the official website

wget http://nginx.org/download/nginx-1.8.1.tar.gz

4: extract

tar zxvf nginx-1.8.1.tar.gz

5: Enter the decompressed folder

cd nginx-1.8.1

6: execute the command

./Configure found that the error is due to the lack of pcre library

7: re-enter the Downloads folder to download pcre

wegt http://sourceforge.net/projects/pcre/files/pcre/8.31/pcre-8.31.tar.gz

8: decompress pcre

tar zxvf pcre-8.31.tar.gz

9: Enter the decompressed folder

cd pcre-8.31

10: execute the command

./Configure: the successful make statement will report an error. compilation fails. Therefore, g ++ must be installed.

11. install g ++

sudo apt-get install g++

12: re-enter the pcre-8.31 folder and execute the command

./Configuremakesudo make install error missing zlib package

13: install the zlib package

sudo apt-get install zlib1g-dev

14: re-enter the pcre-8.31 folder and execute the command

./configuremakesudo make install

15: re-enter the nginx-1.8.1 folder to execute the command

./configuremakesudo make install

16: start nginx

After sudo/usr/local/nginx/sbin/nginx is started successfully, log on to localhost to check whether the installation is successful! Http: // localhost: 80

17: disable nginx

sudo killall -9 nginx

'). AddClass ('pre-numbering '). hide (); $ (this ). addClass ('Has-numbering '). parent (). append ($ numbering); for (I = 1; I <= lines; I ++) {$ numbering. append ($ ('
  • '). Text (I) ;}; $ numbering. fadeIn (1700) ;}) ;}; script

    The above describes how to install the stable nginx version in Ubuntu1404, including some content. if you are interested in the PHP Tutorial.

    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.