Linux compile and install Nginx1.16.1 stable version
This article uses centOS 7.8.2003 version
to install through compilation
How to install Nginx 1.16.1 stable version
1. Installation dependencies and environment
Note
The purpose of quick installation and step-by-step installation is the same. Just
choose one method to install.
Quick install
yum install gcc gcc-c++ pcre pcre-devel zlib zlib-devel openssl openssl-devel -y
Step-by-step installation
- Install gcc environment
yum install gcc gcc-c++
- Install PCRE library for parsing regular expressions
yum install -y pcre pcre-devel
- zlib compression and decompression dependencies
yum install -y zlib zlib-devel
- SSL secure encrypted socket protocol layer, used for HTTP secure transmission, which is https
yum install -y openssl openssl-devel
2. Download the Nginx source code
Remaining part, portal