Linux compile and install Nginx1.16.1 stable version

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

image-20210113154135828

Step-by-step installation

  1. Install gcc environment
yum install gcc gcc-c++
  1. Install PCRE library for parsing regular expressions
yum install -y pcre pcre-devel
  1. zlib compression and decompression dependencies
yum install -y zlib zlib-devel
  1. 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

Guess you like

Origin blog.csdn.net/weixin_39067447/article/details/112577427