找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 13238|回复: 0

最新nginx-1.9.6+replace-filter-nginx-module编译安装手迹

[复制链接]
发表于 2015-10-31 10:52:44 | 显示全部楼层 |阅读模式
准备文件:
( r  p0 z1 b! w5 `8 ^  c" Wwget http://www.openssl.org/source/openssl-1.0.2d.tar.gz+ Y; ~! n+ f9 N+ \+ h8 f( ^  U& \6 m" y% a
tar xvzf openssl-1.0.2d.tar.gz
; ?. ]) U1 T& |" K6 o$ x, l0 S+ y, U9 P
5 a6 r' a. i4 H% @# E
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.37.tar.gz% B3 W- f. X: X5 A9 {
tar xvzf pcre-8.37.tar.gz
$ z/ \8 f, ^' o7 |" v9 Q
$ D2 e5 b7 }/ L+ I
8 i6 F* B0 |8 C& f7 Zwget http://nginx.org/download/nginx-1.9.6.tar.gz
$ D3 s8 `' @' C) s; Ytart xvzf nginx-1.9.6.tar.gz
. r' D0 N; v, G  a
# B( i; w% F7 a% p+ M8 R, r/ s: G8 Q# n/ z0 y+ y
wget https://github.com/openresty/replace-filter-nginx-module/archive/master.zip% ^- v$ l& r4 s
mv master.zip replace-filter-nginx-module-master.zip; f! w) M  X9 F! B
unzip replace-filter-nginx-module-master.zip
8 a3 f& ?6 b' A
7 _, n9 R$ D) b8 r安装sregex" a+ S, d$ ]& m
wget https://github.com/openresty/sregex/archive/master.zip$ K! i* s. I+ i+ |2 I
mv master.zip sregex.zip
- e: a) e1 H, [% wunzip sregex.zip" \. t( V2 X/ f- V3 _9 c
cd sregex
2 G: o' H  H, h/ Z& smake && make install; v  W- @: p1 \
ln -s /usr/lib/libsregex.so.0  /usr/local/lib/libsregex.so.0.0.1
' W( ^- O5 d1 H. E! h6 |# E& c: o5 m/ j$ i2 y
安装nginx
1 s# @6 ^  w, }2 P2 M0 x$ [cd nginx-1.9.6
2 ^/ q: f: j: s2 e2 s* R) |9 h! k3 [4 v( I/ Z5 ^/ j& D3 O/ W
[AppleScript] 纯文本查看 复制代码
./configure \
--user=www \
--group=www \
--prefix=/www/webserver/nginx-1.9.6 \
--sbin-path=/www/webserver/nginx-1.9.6/sbin/nginx \
--pid-path=/www/webserver/nginx-1.9.6/logs/nginx.pid \
--conf-path=/www/webserver/nginx-1.9.6/conf/nginx.conf \
--error-log-path=/www/webserver/nginx-1.9.6/logs/error.log \
--http-log-path=/www/webserver/nginx-1.9.6/logs/access.log \
--http-client-body-temp-path=/www/webserver/nginx-1.9.6/temp/client \
--http-proxy-temp-path=/www/webserver/nginx-1.9.6/temp/proxy \
--http-fastcgi-temp-path=/www/webserver/nginx-1.9.6/temp/fcgi \
--http-scgi-temp-path=/www/webserver/nginx-1.9.6/temp/scgi \
--http-uwsgi-temp-path=/www/webserver/nginx-1.9.6/temp/uwsgi \
--with-http_flv_module \
--with-http_stub_status_module \
--with-http_realip_module \
--with-http_ssl_module \
--with-http_v2_module \
--with-http_gzip_static_module \
--with-ipv6 \
--with-pcre=/root/pcre-8.37 \
--with-http_sub_module \
--add-module=/root/replace-filter-nginx-module-master \
--with-openssl=/root/openssl-1.0.2d

. Q4 d: |! P7 r2 O2 q5 \: S
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|第一站论坛 ( 蜀ICP备06004864号-6 )

GMT+8, 2026-6-16 07:12 , Processed in 0.066193 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表