一、三大版本
Mainline version 开发版
Stable version 稳定版
Legacy versions 历史版
二、安装方法
1.yum源安装
Install the prerequisites:
sudo yum install yum-utils
To set up the yum repository, create the file named /etc/yum.repos.d/nginx.repo with the following contents:
[nginx-stable]
name=nginx stable repo
baseurl=http://nginx.org/packages/centos/basearch/
gpgcheck=1
enabled=1
gpgkey=https://nginx.org/keys/nginx_signing.key
2.源码编译安装
下载源码包
image.png
放入服务器对应位置
tar xzvf nginx-1.16.0.tar.gz
cd nginx-1.16.0
./configure
make
make install
如果需要加入额外的模块等,可以在configure的时候加入参数,此文不详细扩展了。