nginx部署教程实战
下载 选择稳定版
https://nginx.org/en/download.html

解压
tar -zxvf nginx-1.28.3.tar.gz
安装环境
yum install -y openssl openssl-devel
yum install gcc-c++
yum install -y pcre pcre-devel
yum install -y zlib zlib-devel
yum install -y openssl openssl-devel

执行编译nginx
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-stream --with-http_realip_module --with-threads
最后
make
make install
安装目录
/usr/local/nginx