找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 11539|回复: 0

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

[复制链接]
发表于 2015-10-31 10:52:44 | 显示全部楼层 |阅读模式
准备文件:9 I, ^' l$ y- B. s, o" y
wget http://www.openssl.org/source/openssl-1.0.2d.tar.gz
0 o. s8 C2 O! U! t3 ]tar xvzf openssl-1.0.2d.tar.gz
3 B0 q% f& _( @7 O
; G  D1 t4 B0 E% y# H7 l9 P( T
0 S1 x, X6 Q7 e9 ~+ B9 nwget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.37.tar.gz& `$ Z! z, L! K$ i. p" l
tar xvzf pcre-8.37.tar.gz" T3 \9 O4 D6 \: R3 b! P9 p

2 U" z, u/ T$ F" N* Z9 O
: |5 O. ~& {, N7 C: `) r3 Mwget http://nginx.org/download/nginx-1.9.6.tar.gz, s" Z! L, X& f/ l3 D
tart xvzf nginx-1.9.6.tar.gz
7 ], j5 O+ {8 A+ T
$ I  l1 L8 \4 i# C* T; g( c, G' i4 \# P- a, i
wget https://github.com/openresty/replace-filter-nginx-module/archive/master.zip
; Z8 B/ E0 I! G& smv master.zip replace-filter-nginx-module-master.zip* f$ V, P% v. u$ f
unzip replace-filter-nginx-module-master.zip
9 ~5 b# s& z& C: W+ h0 N' m& ?% K5 I# s4 X& }  F( l
安装sregex
# a" T7 d- b! w* Jwget https://github.com/openresty/sregex/archive/master.zip
8 y- C: {0 J- p" K0 i. n- A3 w6 Dmv master.zip sregex.zip
4 r+ f: w5 z9 cunzip sregex.zip
1 z5 N. c- v2 M* |& ~4 s) K1 F0 dcd sregex( x* k( l% j: G9 A& K4 f! ^% `/ B
make && make install- z! w" E8 J( c+ l4 l& N1 J
ln -s /usr/lib/libsregex.so.0  /usr/local/lib/libsregex.so.0.0.1. ]/ W9 g2 J; c* L* I5 Q/ i. {0 q
; p' H$ p  v: d& x7 C, W: m
安装nginx4 J1 F9 p# }3 T! X' `8 t* c: h# ^
cd nginx-1.9.6
3 s7 X, C# F' ?  R" Z
# a, M* e$ }1 B- r2 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
- y3 V1 q' P' \. Y. g% d
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-1-3 01:56 , Processed in 0.048232 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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