lsb_release -a
yum install gcc-c++
yum install zlib* -y
yum install -y pcre pcre-devel
官网下载地址:http://nginx.org/en/download.html
tar -zxvf nginx-1.22.0.tar.gz
mv ~/nginx-1.22.0 /usr/local/
cd /usr/local/nginx-1.22.0/
./configure --prefix=/usr/local/nginx
make
make install
ln -s /usr/local/nginx/sbin/nginx /usr/sbin/nginx
nginx -V
nginx
nginx -s reload
nginx -t