基础环境依赖
yum -y install make zlib zlib-devel gcc-c++ libtool openssl openssl-devel
PCRE安装
yum install pcre pcre-devel
nginx安装
1.官网下载
nginx: download
2.解压
tar -zxvf nginx-1.20.
3.切换目录
cd nginx-1.20.2
4.选择安装目录
./configure --prefix=/usr/local/software/nginx --with-openssl=/usr/bin/openssl --with-http_stub_status_module --with-http_ssl_module
5.编译安装
make && make install
6.添加环境变量