安装依赖环境
yum -y install openssl openssl-devel zlib zlib-devel
安装包地址
官方: http://nginx.org/en/download.html
编译安装
tar xf nginx-1.22.0.tar.gz
cd nginx-1.22.0
./configure --prefix=/usr/local/nginx --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_v2_module --add-module=/usr/local/nginx/package/headers-more-nginx-module-0.33
make && make install
启动
/data/nginx/sbin/nginx









网友评论