找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 10371|回复: 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+ I6 W$ ^0 H% n' D
下载需要组件0 D7 h% }# Z( ^+ E
wget http://nginx.org/download/nginx-1.15.9.tar.gz2 M7 h5 w5 R+ |3 g: w2 c4 C( {) E9 z  O
tar xvzf nginx-1.15.9.tar.gz7 j. G8 ^- S: t. @; [
6 y) T; ?# T, w
wget https://www.openssl.org/source/openssl-1.1.1b.tar.gz
; I0 M2 e6 W* T2 ?tar xvzf openssl-1.1.1b.tar.gz
* i# X+ w8 q# w3 a+ x4 X- r! b1 c: `- X8 r0 u1 ?6 r
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.43.tar.gz0 U" G$ u' x9 P0 _0 K& K/ k& V
tar xvzf pcre-8.43.tar.gz, h7 Q; m6 y' F. B3 _4 F
& \2 T7 b1 }$ l. H! k3 z+ ]8 K
wget https://github.com/yaoweibin/ngx_http_substitutions_filter_module/archive/master.zip -O ngx_http_substitutions_filter.zip+ w% Z; X5 w$ j- a
unzip ngx_http_substitutions_filter.zip
( ~  R$ }2 U: i3 P6 N
5 D) u; c% Y8 k, Ncd nginx-1.15.9
9 d, c* ]8 h) s4 L
1 v; V- x6 N. \2 x- w1 E配置文件+ p! x# F, i  u5 v
; e: t$ z6 N' v; V

! N8 A# j0 Z; t" q
[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
8 G7 C6 v. P7 n8 y( ^* X2 W2 }
编译 make: m; m/ u3 A' F$ ]* o4 L
安装 make install3 h) I  d8 w* H% V, K1 [

3 C, u5 V4 ]# \' T  H其它的启动配置文件找度娘。9 {( d" ]" h  q
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-12-4 01:25 , Processed in 0.065381 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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