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

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

[复制链接]
发表于 2020-1-17 14:11:05 | 显示全部楼层 |阅读模式
下载需要组件' z- g+ e3 V3 G1 q* H( s8 O
wget http://nginx.org/download/nginx-1.17.7.tar.gz% W" c4 p$ c# d2 a8 U: G0 I
tar xvzf nginx-1.17.7.tar.gz$ y2 u" q0 X1 S) P: i' S+ A

! p6 `, _- f  T+ d( v( vwget https://www.openssl.org/source/openssl-1.1.1d.tar.gz
  P( v% O! w9 r+ s/ T6 z% ]tar xvzf openssl-1.1.1d.tar.gz1 n3 i0 k4 |3 j
1 g/ }3 I+ U9 ?1 ]; i: Z' U% z, l
wget https://ftp.pcre.org/pub/pcre/pcre-8.43.tar.gz+ l: u' ?: B) W, g: y  b9 j
tar xvzf pcre-8.43.tar.gz
0 K) X$ @( `* _" g" c3 e( d
$ _2 v. U/ e  W3 N- o/ {, B$ nwget https://github.com/yaoweibin/ngx ... /archive/master.zip -O ngx_http_substitutions_filter.zip
% n; e+ I  B* eunzip ngx_http_substitutions_filter.zip- h: h- [7 ~% _5 X+ V4 j5 ~

$ p% V/ z  W  i' H; A/ m1 Ucd nginx-1.17.70 Z# C% r# y9 t$ x( j4 F3 R
& W( Z$ u1 j) M# ~5 t0 Z8 v3 ?

$ S) h. ^4 k; p6 o0 U4 ?6 Z4 d9 K配置文件
( \4 u; l' `' j4 `, a8 E" K[mw_shl_code=shell,true]./configure \" q+ x4 K9 I5 |3 ?" Q$ ]7 W
--user=www \5 y, @# H: N, j7 I
--group=www \9 K  _+ d/ F: ?9 P, \
--prefix=/www/webserver/nginx-1.17.7 \, r- `5 Z% h( b: F8 W. c  p
--sbin-path=/www/webserver/nginx-1.17.7/sbin/nginx \6 n: |1 N7 \2 b3 e/ Z2 K5 y
--pid-path=/www/webserver/nginx-1.17.7/logs/nginx.pid \
' q4 k% V) I$ Y3 u6 ]0 \' q--conf-path=/www/webserver/nginx-1.17.7/conf/nginx.conf \$ O% Y6 }. r1 E
--error-log-path=/www/webserver/nginx-1.17.7/logs/error.log \1 |6 C2 x- J' W% i9 i
--http-log-path=/www/webserver/nginx-1.17.7/logs/access.log \
$ S* R: X) H9 n4 u--http-client-body-temp-path=/www/webserver/nginx-1.17.7/temp/client \
7 z5 R; U0 S& v! J. J9 \& |--http-proxy-temp-path=/www/webserver/nginx-1.17.7/temp/proxy \
! V. X* S, ^/ i0 b4 T7 w$ a--http-fastcgi-temp-path=/www/webserver/nginx-1.17.7/temp/fcgi \
: F, [) t, t- R+ ~, ?4 v& p* q& t--http-scgi-temp-path=/www/webserver/nginx-1.17.7/temp/scgi \* E" A6 e/ a+ C) M* I% _8 L$ v
--http-uwsgi-temp-path=/www/webserver/nginx-1.17.7/temp/uwsgi \5 {6 p2 E' X. S4 @( X! X' j
--with-http_flv_module \
& Z; {' _. S( r9 Q, |3 a--with-http_stub_status_module \2 o) c0 M9 k+ K+ R5 m) |; \2 C
--with-http_realip_module \
! l! D/ c) O- B3 [--with-http_ssl_module \
/ j2 ?0 A( |# q* _8 V7 ~- Q; S6 G--with-http_v2_module \
8 p8 O6 h3 {2 q. c--with-http_gzip_static_module \( o& N2 k  T+ B( L
--with-pcre=/root/pcre-8.43 \
3 o7 B2 ]! e6 d" V) j--with-http_sub_module \0 t5 H. D  p# z- `& \( G0 L+ P
--with-http_geoip_module \9 f  ]9 U7 r' S
--add-module=/root/ngx_http_substitutions_filter_module-master \
2 g' J. a. d) a' {/ y7 D1 s! Y2 i) e--with-openssl=/root/openssl-1.1.1d[/mw_shl_code]: X* x- A. u$ e- G' x! u9 x
编译 make
5 E0 L/ Q6 ~' R2 \安装 make install
3 o8 n& q2 L) C, \' r6 ]
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2024-4-26 13:33 , Processed in 0.064492 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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