nginx官网 http://nginx.org/en/download.html,当前稳定版本为1.16.1,下载安装包nginx-1.16.1.tar.gz
yum -y install gcc zlib zlib-devel pcre-devel openssl openssl-devel
tar zxf nginx-1.16.1.tar.gz -C /usr/local
cd nginx-1.16.1
./configure
make&&make install编译后安装在/url/local/nginx目录下
/usr/local/nginx/sbin/
./nginx 启动
./nginx -s stop 关闭
./nginx -s reload 重启
./nginx -t 测试配置文件是否正常