找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 14032|回复: 0

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

[复制链接]
发表于 2015-10-31 10:52:44 | 显示全部楼层 |阅读模式
准备文件:
' Y0 y0 ~3 ^8 V- G9 r. mwget http://www.openssl.org/source/openssl-1.0.2d.tar.gz6 S" q4 E' Q. @, B+ `  o; w9 f9 L: ~% S
tar xvzf openssl-1.0.2d.tar.gz2 o. D' k  C. A- j
. b8 w4 o% M9 v, ~# e
& C; w. T' L6 p( `2 Z' R) x
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.37.tar.gz
3 M' e3 S/ I; Z0 Vtar xvzf pcre-8.37.tar.gz& b7 ]! x5 x/ O7 _1 \+ b1 E' \

7 X3 Q7 }5 I, Z, O1 ]3 H1 a" n+ z4 X" q* c8 g: a6 k
wget http://nginx.org/download/nginx-1.9.6.tar.gz
# \. O: g% v& y& F* ]) n6 ?1 ?tart xvzf nginx-1.9.6.tar.gz
7 W. \% R3 L  q; s' M7 |, }. g
9 g4 S0 A- Y" j
' l9 i  V2 ^. a) ~8 V+ ~wget https://github.com/openresty/replace-filter-nginx-module/archive/master.zip
) R: C! o9 ~/ O) `( @mv master.zip replace-filter-nginx-module-master.zip
3 C9 m; ?7 H$ m, Gunzip replace-filter-nginx-module-master.zip8 o1 u2 z' K! F2 R& i; J
0 u, S0 }) q8 X% A
安装sregex
5 J/ R; s9 \8 j1 ]wget https://github.com/openresty/sregex/archive/master.zip
* R% F- y- I6 W/ ?mv master.zip sregex.zip5 D" D# I8 {) |: E6 o$ v0 o# V/ B
unzip sregex.zip' ]# N& ~& [2 G# K4 p
cd sregex" j0 H4 L. k* Y
make && make install7 r9 ^2 u$ u& }. Q% {
ln -s /usr/lib/libsregex.so.0  /usr/local/lib/libsregex.so.0.0.1
  D7 R& a2 l# M  l( E; J: o% Z
& S" K# m  e; t' f4 G安装nginx9 s& n) j5 P' h9 f2 X0 q
cd nginx-1.9.6
6 m' i! Q( \' O. h7 q9 `* B4 ^/ F# e4 L) q+ e
[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
% y. x- K$ d# {3 J1 t4 e( I9 Y
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-8-30 15:28 , Processed in 0.048621 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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