2 回答

TA貢獻2039條經(jīng)驗 獲得超8個贊
下載模塊
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 –V
nginx version: nginx/1.3.1
TLS SNI support disabled
configure arguments: —prefix=/usr/local/nginx —with–http_stub_status_module —with–http_ssl_module—with–http_gzip_static_module
根據(jù)查詢的版本號下載對應(yīng)版本的nginx,可以到官方下載指定版本:http://nginx.org/download/
我這里使用的是1.8.0
wget nginx–1.8.0.tar.gz
tar zxvf nginx–1.8.0.tar.gz
cd nginx–1.8.0
根據(jù)上面-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-concat
make之前備份配置文件,防止意外
cp –r /usr/local/nginx/conf /root/nginxconf
編譯安裝
make && make install

TA貢獻1993條經(jīng)驗 獲得超6個贊
lua-nginx-module和echo-nginx-module都各自詳細的安裝步驟。
例如:
pushd nginx-1.6.2
./configure \
--prefix=/usr/local/nginx \
--sbin-path=/usr/sbin \
--with-http_ssl_module \
--with-http_sub_module \
--with-http_flv_module \
--with-http_stub_status_module \
--with-zlib=../zlib-1.2.5 \
--with-openssl=../openssl-1.0.1j \
--with-pcre=../pcre-8.36 \
--add-module=/usr/local/echo-nginx-module \
--add-module=/usr/local/lua-nginx-module
make;
make install;
popd
- 2 回答
- 0 關(guān)注
- 1046 瀏覽
添加回答
舉報