找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 10311|回复: 0

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

[复制链接]
发表于 2015-10-31 10:52:44 | 显示全部楼层 |阅读模式
准备文件:2 i, p( q9 V( Z; K/ D: z
wget http://www.openssl.org/source/openssl-1.0.2d.tar.gz: T7 @1 C* v% ]7 _; V5 y
tar xvzf openssl-1.0.2d.tar.gz+ c# [0 g0 x9 h& U

3 o: b, Q3 y+ `8 L6 G% O
" b* c/ I# @* b9 Gwget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.37.tar.gz5 A4 V* m& S4 x
tar xvzf pcre-8.37.tar.gz
+ T' x/ e; L# A' y7 d* o, m1 d  t( D; M  [2 k( [/ n$ U: ]$ l# Z6 O! I3 o$ t/ d

8 i$ h' l6 ?5 }  B6 D/ D# O  Q: wwget http://nginx.org/download/nginx-1.9.6.tar.gz, X, p$ m- x+ Y* @
tart xvzf nginx-1.9.6.tar.gz, _' l& J1 u8 T2 v
1 a' ]8 l; t7 {/ o

8 p( V+ a/ W4 h  Q, r' iwget https://github.com/openresty/replace-filter-nginx-module/archive/master.zip0 Y' C# Q: m- T1 R
mv master.zip replace-filter-nginx-module-master.zip7 O- C& O/ L0 y
unzip replace-filter-nginx-module-master.zip
) e6 F" M$ [5 U5 \
9 l1 p, j5 F5 W安装sregex
0 x" [! i' a- v( \& @  Mwget https://github.com/openresty/sregex/archive/master.zip& q& _; H! c) ]7 K2 z5 r8 {
mv master.zip sregex.zip9 {! E( C3 l+ ^# J, D
unzip sregex.zip
$ c! h) ~2 S0 W2 j- N/ ?cd sregex
& J' M: |6 B: x, ~8 Fmake && make install% ]% y3 L+ g! b  \* G4 g
ln -s /usr/lib/libsregex.so.0  /usr/local/lib/libsregex.so.0.0.1
0 ^5 O* \$ S5 D9 g6 z1 |
8 z2 W# ]* a0 E. m5 [$ i% m安装nginx0 u  Z* l- I3 m5 w- f4 o! r8 ?
cd nginx-1.9.6
. H# o! R! y: g) n  U) z5 r" D' \% @2 t/ f2 w4 E$ w0 U
[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
; E, H; |; ^. U; {1 w" y& E; k) U
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-7-18 21:39 , Processed in 0.042294 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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