largeQ
下载模块git clone git://github.com/alibaba/nginx-http-concat.git移动目录mv nginx–http–concat /usr/local/src/nginx–http–concat查看版本号以及配置信息(目录/模块)/usr/local/nginx/sbin/nginx –Vnginx version: nginx/1.3.1TLS SNI support disabledconfigure arguments: —prefix=/usr/local/nginx —with–http_stub_status_module —with–http_ssl_module—with–http_gzip_static_module根据查询的版本号下载对应版本的nginx,可以到官方下载指定版本:http://nginx.org/download/我这里使用的是1.8.0wget nginx–1.8.0.tar.gztar zxvf nginx–1.8.0.tar.gzcd nginx–1.8.0根据上面-V的信息 加入concat模块所在路径 (–add-module=/usr/local/src/nginx-http-concat) 进行编译./configure —prefix=/usr/local/nginx —with–http_stub_status_module —with–http_ssl_module—with–http_gzip_static_module –add-module=/usr/local/src/nginx-http-concatmake之前备份配置文件,防止意外cp –r /usr/local/nginx/conf /root/nginxconf编译安装make && make install