返回列表

nginx安装gzip模块

默认分类 2015/03/15 09:00

shell脚本如下:

wget http://nginx.org/download/nginx-1.6.2.tar.gz

tar -xzvf nginx-1.6.2.tar.gz

cd nginx-1.6.2

yum -y install gcc openssl-devel pcre-devel zlib-devel

./configure  --user=root --group=root --prefix=/opt/nginx --with-http_realip_module --with-http_addition_module --with-http_gzip_static_module --with-http_stub_status_module --with-http_sub_module

make

make install