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: