Ubuntu compiler Nginx

Source: Internet
Author: User
Tags php tutorial
One-click Compiler installation Nginx

#nginx地址官网安装cd/opt/&& wget http://nginx.org/download/nginx-1.7.9.tar.gz && tar xvf nginx-1.7.9.tar.gz  && cd nginx-1.7.9 && sudo apt-get install-y libpcre3 libpcre3-dev libssl-dev & ;&./configure && make && make Install#githubdi address installation cd/opt/&& wget Https://github.com/nginx /nginx/archive/master.zip && Unzip master.zip  && cd  nginx-master && sudo apt-get Install-y libpcre3 libpcre3-dev libssl-dev &&/configure && make && make install

Step Installation

1. Get the Download address


2. Download

3. Decompression

4. Enter the directory and compile


5, Missing Pcre packet dependency error

./configure:error:the HTTP Rewrite module requires the PCRE library. You can either disable the module by using--without-http_rewrite_module option or install the PCRE library into the Syst Em. or build the PCRE library statically from the source with Nginx by using--with-pcre= option


6. Add Pcre Package Dependency


7, lack of zlib package dependency

./configure:error:the HTTP gzip module requires the Zlib library. You can either disable the module by Using–without-http_gzip_module option, or install the Zlib library into the system, or build the Zlib library statically from the source with Nginx by using–with-zlib= option.


8, add Zlib package dependency (install Libssl-dev Libssl-dev dependent Zlib1g-dev package automatic download)


9, dependency Check Normal


10. Compile and install


11. Successful Installation


12. Start Nginx


13. See if it is started



Vim exit command: Q or cut into background mode CTRL + Z back to the main command console

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

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