找回密码
 立即注册
查看: 4218|回复: 0

nginx-1.15.9-ngx_http_substitutions_filter(关键字替换)编译安装...

[复制链接]
发表于 2019-3-25 10:24:34 | 显示全部楼层 |阅读模式
话不多说,我的系统的centos6,参考帖子http://bbs.swdyz.com/forum.php?mod=viewthread&tid=4184 t+ x. X+ }* W: w8 c1 v9 T
下载需要组件
7 D  W. F9 F9 _( p* I- Jwget http://nginx.org/download/nginx-1.15.9.tar.gz
8 K$ V5 N: d, A# u9 }+ z9 etar xvzf nginx-1.15.9.tar.gz5 K* _4 V; X2 `5 d2 ~& f( f
" M5 K% X6 G' c7 T, B
wget https://www.openssl.org/source/openssl-1.1.1b.tar.gz3 \5 o3 F) h2 r$ P9 B# ?( V" a) I
tar xvzf openssl-1.1.1b.tar.gz
5 o& J7 a8 m7 G+ ?
& r# o. l( L2 ], }; f1 R6 {; Iwget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.43.tar.gz5 C( b9 a9 G+ [+ f& w) @" O0 I7 B
tar xvzf pcre-8.43.tar.gz0 I0 b+ l! e* n3 L, s( [' _

6 {2 l) I' B- v2 U+ J* C: T* ewget https://github.com/yaoweibin/ngx_http_substitutions_filter_module/archive/master.zip -O ngx_http_substitutions_filter.zip
% D8 X; _; L) b0 _4 Z- ~/ r! yunzip ngx_http_substitutions_filter.zip
+ t6 m7 I8 }& h: u- v
) ]" \7 P; F: Zcd nginx-1.15.94 h6 N+ O8 _% Q5 O8 \
: ]2 |- g1 {2 T6 d9 D0 A( |' ?- ?
配置文件
( a2 X; k( q3 E+ @! F; t- x  a! F% ]* J( M# _7 Y- T  \5 f
! c2 {  ?/ y3 x4 f5 a! V; l5 D
[mw_shl_code=shell,true]./configure \
# c  h3 |2 x8 H  I& M2 L  s--user=www \
  z  j0 p/ d, l3 A! q, t2 X( K, ^--group=www \  D; ^3 T% z& q' |+ g8 D
--prefix=/www/webserver/nginx-1.15.9 \
8 m/ F% S! s* k) ~  m9 f7 n* x--sbin-path=/www/webserver/nginx-1.15.9/sbin/nginx \' b+ z7 q/ Z% S/ Q9 ^- U' x
--pid-path=/www/webserver/nginx-1.15.9/logs/nginx.pid \1 f/ b% u; g( o$ H  B  k4 d. ?
--conf-path=/www/webserver/nginx-1.15.9/conf/nginx.conf \
4 T0 G/ j- |5 t4 }2 r; M( N1 c--error-log-path=/www/webserver/nginx-1.15.9/logs/error.log \6 `* w0 l8 i, f7 a" d
--http-log-path=/www/webserver/nginx-1.15.9/logs/access.log \
3 O) A& f& ]  k% `) V" @  l5 }4 _; k--http-client-body-temp-path=/www/webserver/nginx-1.15.9/temp/client \; [+ d8 s# P% q1 g% c! L
--http-proxy-temp-path=/www/webserver/nginx-1.15.9/temp/proxy \
. g" j3 `0 F2 p& r) s, n" f--http-fastcgi-temp-path=/www/webserver/nginx-1.15.9/temp/fcgi \' @; h( p' f5 n) \; q7 ]
--http-scgi-temp-path=/www/webserver/nginx-1.15.9/temp/scgi \* W: _) k& A6 F, p
--http-uwsgi-temp-path=/www/webserver/nginx-1.15.9/temp/uwsgi \
/ E0 e. i* \, E0 C& F--with-http_flv_module \# b1 k2 s1 a, h( r9 Z7 L6 B: i& h& x0 s
--with-http_stub_status_module \
3 B* n. F: K" F6 w--with-http_realip_module \
! s- d( \+ b3 u& H4 W9 U+ L1 b9 K--with-http_ssl_module \& d0 _8 }- x1 l2 `4 Z& g6 K5 V8 f
--with-http_v2_module \
$ b6 i2 K. ~0 v' P. g6 Q5 [  J--with-http_gzip_static_module \
+ q# d0 c; y9 s7 f1 A( P, F  V--with-pcre=/root/pcre-8.43 \# Z1 {3 a! I  n  ?' a6 E
--with-http_sub_module \
" ^4 g; b0 R+ P# N) h5 j--add-module=/root/ngx_http_substitutions_filter_module-master \0 e: s4 A' i# D7 L- A: D
--with-openssl=/root/openssl-1.1.1b[/mw_shl_code]% T7 e9 H! {& k8 J( L& O
编译 make
% @9 _) y9 L9 l& B# G安装 make install
$ q0 y7 J" X9 k! @
2 R6 m- w- i7 @) G- L  C其它的启动配置文件找度娘。
6 T4 q/ M3 [6 c1 K/ i( D. D
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2024-3-29 04:59 , Processed in 0.187637 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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