找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 14646|回复: 0

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

[复制链接]
发表于 2015-10-31 10:52:44 | 显示全部楼层 |阅读模式
准备文件:' c2 A+ h6 L# H9 |8 F/ M4 b
wget http://www.openssl.org/source/openssl-1.0.2d.tar.gz1 m5 N& M" |6 u5 q: K$ A  z
tar xvzf openssl-1.0.2d.tar.gz4 F8 T) V, s$ K0 E, t" g

6 R4 Z! `: Q5 u  c# T& p$ m- N  X' ]4 e/ V) t2 b$ h5 `$ _
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.37.tar.gz* E9 X$ N% V6 @+ Y  o
tar xvzf pcre-8.37.tar.gz
" m' w# \$ a3 b& Y; `3 \6 v2 c) G9 C% j9 s5 T* q: W
( ?# @3 ~8 {' i" ], l
wget http://nginx.org/download/nginx-1.9.6.tar.gz
2 E2 c& j$ L* S) `tart xvzf nginx-1.9.6.tar.gz$ c# Q9 ]) t' k, q/ M7 y/ u

8 G/ l8 ~5 I: m) m$ Y
3 e# T( R& G8 D. I. u; Swget https://github.com/openresty/replace-filter-nginx-module/archive/master.zip
2 V* X! ?- y2 `6 g) z2 I( Zmv master.zip replace-filter-nginx-module-master.zip
/ n! D* x! f2 G; kunzip replace-filter-nginx-module-master.zip; {& [* G; {0 F+ x( o6 ]! x

& d0 k8 q+ a- `; g3 X. W6 }安装sregex
+ O( p% Y: P+ v% {wget https://github.com/openresty/sregex/archive/master.zip$ o4 H6 m) l* e( b* A
mv master.zip sregex.zip) E% E4 A, k; j" ~4 g
unzip sregex.zip7 R: s% j1 ~. _! K' N. @) [
cd sregex
  ?1 y9 r  q7 b, T* L4 o2 H% T' Zmake && make install
/ l6 i* {; |! @' Z7 \ln -s /usr/lib/libsregex.so.0  /usr/local/lib/libsregex.so.0.0.15 F' _$ m4 }$ s+ A  G

  v; a! _4 D8 T+ ~/ w安装nginx4 H9 [8 _* S: m, o6 i6 ^
cd nginx-1.9.6, s- u& i+ L  l0 T4 r

. V! l; {4 B& _5 ]: O& G* f% A) b
[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

! f% ^+ B  k1 ^
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-11-19 14:17 , Processed in 0.069297 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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