Install Nginx ubuntu15.04 linux ubuntu 16.04 under Ubuntu

Source: Internet
Author: User
1. Installation Steps

    1. Step1: Download Ninx

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

      Different versions of the download address can be obtained from http://nginx.org/en/download.html.

    2. Step2: Unzip and install

      $ tar -zxvf nginx-1.8.1.tar.gz $ cd nginx-1.8.1/$ ./configure$ make$ make install
    3. To see if the installation was successful

      See if there is an Nginx directory under the/usr/local/directory, and the installation is successful.

2. Document Description

Description of the file under the/usr/local/nginx/directory:

conf/  存放配置文件html/  存放一些网页文件logs/  存放一些日志sbin/  一些可执行文件

3. Some common problems during installation

The following error will be reported when/configure:

Error 1:

error: the HTTP rewrite module requires the PCRE library.

Workaround:

$ apt-get -y install libpcre3 libpcre3-dev #安装库,之后重新./configure

Error 2:

error: the HTTP gzip module requires the zlib library

Workaround:

$ apt-get -y install zlib1g zlib1g.dev #安装库,之后重新./configure

Reference: Http://www.jikexueyuan.com/course/1470_2.html?ss=1

'). addclass (' pre-numbering '). Hide (); $ (this). addclass (' has-numbering '). Parent (). append ($numbering); for (i = 1; i <= lines; i++) {$numbering. Append ($ ('
  • '). Text (i)); }; $numbering. FadeIn (1700); }); });

    The above describes the Ubuntu installation Nginx, including the content of Ubuntu, I hope that the PHP tutorial interested in a friend helpful.

  • 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.