Compiling and installing Nginx 1.10.0 from Ubuntu 16.04 source code

Source: Internet
Author: User

Compiling and installing Nginx 1.10.0 from Ubuntu 16.04 source code

Compile and install Nginx 1.10.0 in Ubuntu 16.04 source code.

1. Download related dependent Libraries

Pcre http: // 120.52.73.43/jaist.dl.sourceforge.net/project/pcre/pcre/8.38/pcre-8.38.tar.gz

Openssl https://www.openssl.org/source/openssl-1.0.2h.tar.gz

Zlib http://zlib.net/zlib-1.2.8.tar.gz

Nginx http://nginx.org/download/nginx-1.10.0.tar.gz

2. decompress the source code package of the dependent Library

cd /tmptar -zxf nginx-1.10.0.tar.gz tar -zxf pcre-8.38.tar.gztar -zxf zlib-1.2.8.tar.gztar -zxf openssl-1.0.2h.tar.gz

3. Compile and install Nginx

cd /tmp/nginx-1.10.0./configure --prefix=/usr/local/nginx --pid-path=/usr/local/nginx/logs/nginx.pid --error-log-path=/usr/local/nginx/logs/error.log --http-log-path=/usr/local/nginx/logs/access.log --with-http_ssl_module --with-pcre=/tmp/pcre-8.38 --with-zlib=/tmp/zlib-1.2.8 --with-openssl=/tmp/openssl-1.0.2h

4. Run make and make install

make && sudo make install

5. Verify that nginx is successfully installed

/usr/local/nginx/sbin/nginx -v

Execution result: nginx version: nginx/1.10.0

6. Start nginx

/usr/local/nginx/sbin/nginx

Access localhost through a browser:

For more Nginx tutorials, see the following:

Deployment of Nginx + MySQL + PHP in CentOS 6.2

Install and deploy Nginx + uWSGI + Django1.9.7 in Ubuntu 16.04

Build a Web server based on Linux6.3 + Nginx1.2 + PHP5 + MySQL5.5

Performance Tuning for Nginx in CentOS 6.3

Configure Nginx to load the ngx_pagespeed module in CentOS 6.3

Install and configure Nginx + Pcre + php-fpm in CentOS 6.4

Nginx installation and configuration instructions

Nginx log filtering using ngx_log_if does not record specific logs

Nginx details: click here
Nginx: click here

This article permanently updates the link address:

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.