相关依赖:yum -y install gcc pcre pcre-devel zlib zlib-devel openssl openssl-devel
下载:wget http://nginx.org/download/nginx-1.20.2.tar.gz
解压:tar zxvf nginx-1.20.2.tar.gz
进入目录:cd nginx-1.20.2
配置安装目录:./configure --prefix=/usr/local/nginx
编译:make
安装:make install
进入主目录:cd /usr/local/nginx/sbin
启动:./nginx