找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 8496|回复: 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=418$ N0 [- o$ r' n2 M; e4 t
下载需要组件
$ j% ~5 J( M) q" @( m, Jwget http://nginx.org/download/nginx-1.15.9.tar.gz  L( x1 v* n: k1 g" u  {8 w4 a
tar xvzf nginx-1.15.9.tar.gz
5 Q0 R# c; M# ?2 J9 [9 _, i
* \, z, ]! Z3 }, N+ R+ S3 _( k# c* \wget https://www.openssl.org/source/openssl-1.1.1b.tar.gz4 U3 Y4 f2 Q0 X- A
tar xvzf openssl-1.1.1b.tar.gz4 r) t6 V* {; w
$ U" ~  }7 ?& @2 x
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.43.tar.gz
$ ~8 d8 R* s7 M' O: L, Atar xvzf pcre-8.43.tar.gz# t8 q1 G% H% o0 z9 K

/ I# O+ D6 U1 z. a/ D# @wget https://github.com/yaoweibin/ngx_http_substitutions_filter_module/archive/master.zip -O ngx_http_substitutions_filter.zip# a3 c; V7 Q& y; V: V; k
unzip ngx_http_substitutions_filter.zip
7 P* o0 l7 }. h8 n8 \9 [) S
7 V# i1 B; f# h; }  l3 gcd nginx-1.15.9
  ]5 A" @( {) x; _# a. I+ n, u. V1 C" c. ~7 t. c  G
配置文件
) p. [7 k4 y5 H/ w  ]0 x  S4 T
6 O5 G+ W2 ]  k$ ]% y9 j5 z+ q3 y1 H  W' m, t$ Q- L5 Y2 n
[Shell] 纯文本查看 复制代码
./configure \
--user=www \
--group=www \
--prefix=/www/webserver/nginx-1.15.9 \
--sbin-path=/www/webserver/nginx-1.15.9/sbin/nginx \
--pid-path=/www/webserver/nginx-1.15.9/logs/nginx.pid \
--conf-path=/www/webserver/nginx-1.15.9/conf/nginx.conf \
--error-log-path=/www/webserver/nginx-1.15.9/logs/error.log \
--http-log-path=/www/webserver/nginx-1.15.9/logs/access.log \
--http-client-body-temp-path=/www/webserver/nginx-1.15.9/temp/client \
--http-proxy-temp-path=/www/webserver/nginx-1.15.9/temp/proxy \
--http-fastcgi-temp-path=/www/webserver/nginx-1.15.9/temp/fcgi \
--http-scgi-temp-path=/www/webserver/nginx-1.15.9/temp/scgi \
--http-uwsgi-temp-path=/www/webserver/nginx-1.15.9/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-pcre=/root/pcre-8.43 \
--with-http_sub_module \
--add-module=/root/ngx_http_substitutions_filter_module-master \
--with-openssl=/root/openssl-1.1.1b
1 M4 A8 f4 H% B2 X
编译 make( W, Y& E$ K' V: g2 {
安装 make install! X4 \; M8 n- ^; l. T

/ l6 x& q5 I4 i3 y2 ^! K2 i- q, l其它的启动配置文件找度娘。  p( j6 @8 j' P6 Y# W: W; I, O/ x! h
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-3-26 06:15 , Processed in 0.064192 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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