找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 9913|回复: 0

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

[复制链接]
发表于 2015-10-31 10:52:44 | 显示全部楼层 |阅读模式
准备文件:
/ ]( s- J2 }1 g- ^/ X4 Pwget http://www.openssl.org/source/openssl-1.0.2d.tar.gz
* S" Y0 y  Q/ Y8 n# Ntar xvzf openssl-1.0.2d.tar.gz
6 {+ s! U+ |" V: X6 l, i  w7 C" N, A: l2 j
  p( d+ @1 v6 S8 V9 F6 o
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.37.tar.gz4 s& u( e/ F1 l- D
tar xvzf pcre-8.37.tar.gz* O2 q9 T5 p: h0 u- ?5 x- H2 F

; N2 r5 g3 a' g( W7 T4 L; _. d
8 Q' O2 k! E( V  I  {  F# vwget http://nginx.org/download/nginx-1.9.6.tar.gz
. M& [, V1 x" Z) c2 k0 D# K' wtart xvzf nginx-1.9.6.tar.gz; _; S" f2 T5 U" B4 w: p; N# F
# e% i' V; e( ?  c5 j: W
. u5 u2 q  X1 I) i0 P
wget https://github.com/openresty/replace-filter-nginx-module/archive/master.zip
( N6 C% A2 f% ~+ s% y3 ~mv master.zip replace-filter-nginx-module-master.zip, |* y( ~/ q0 e; Q
unzip replace-filter-nginx-module-master.zip
5 _& y0 z' D9 c
  b( ^& {' {" d+ O( [+ ~0 L- ^& H6 ]安装sregex8 ?4 r2 u% k' T7 s: q  h
wget https://github.com/openresty/sregex/archive/master.zip" K. p+ E5 \5 j3 \
mv master.zip sregex.zip
- t0 K8 c# M- e+ ^$ K2 }unzip sregex.zip
7 x7 q7 m3 F+ [3 i2 `; ocd sregex
( p5 d* @8 p2 `% f9 @make && make install
( ^5 U; h) V4 t+ E2 p- N2 Iln -s /usr/lib/libsregex.so.0  /usr/local/lib/libsregex.so.0.0.1
  O  O- K, s, S, a
8 y( A& P+ p% p: x) g安装nginx. E: o% U2 m" b' T4 @0 P
cd nginx-1.9.6
: w1 X- N, C2 B- s3 q) p3 f
8 ~& c5 ?9 I$ V/ T
[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

0 I4 k: P; p/ t5 a+ h
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-5-14 11:39 , Processed in 0.069006 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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