找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 7233|回复: 0

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

[复制链接]
发表于 2020-1-17 14:11:05 | 显示全部楼层 |阅读模式
下载需要组件( |, S4 T0 f6 }/ Q% y1 x6 e5 U
wget http://nginx.org/download/nginx-1.17.7.tar.gz8 w# D! {3 ^+ T3 t
tar xvzf nginx-1.17.7.tar.gz
8 ?! L' z2 o' p* V
5 [6 V1 X6 O: g* P5 M- gwget https://www.openssl.org/source/openssl-1.1.1d.tar.gz
$ G/ d' B) a2 ]0 c4 {$ qtar xvzf openssl-1.1.1d.tar.gz0 k) D5 J& Z% y! n5 x
* }  ^- J4 y# o2 z( j, i9 ~* V
wget https://ftp.pcre.org/pub/pcre/pcre-8.43.tar.gz7 o8 z/ A4 B7 A9 a4 p' @: D, j
tar xvzf pcre-8.43.tar.gz7 x' g, g% o  ~9 @$ \2 w/ m  t

2 V8 s4 E. K5 d( @$ `1 Swget https://github.com/yaoweibin/ngx ... /archive/master.zip -O ngx_http_substitutions_filter.zip
7 b, `7 [5 _' S5 v4 Y' ?( k' Runzip ngx_http_substitutions_filter.zip, o2 d- Y8 e2 E+ U$ y( z
3 f  I* l7 {+ k5 m: h
cd nginx-1.17.7# \7 E3 s5 z+ p. A7 j5 ^
2 A( K. g+ @  ^: B
% P' h3 D7 s. Y5 L% t* h
配置文件9 C, G/ v/ ~8 _1 \$ B$ p; Z
[Shell] 纯文本查看 复制代码
./configure \
--user=www \
--group=www \
--prefix=/www/webserver/nginx-1.17.7 \
--sbin-path=/www/webserver/nginx-1.17.7/sbin/nginx \
--pid-path=/www/webserver/nginx-1.17.7/logs/nginx.pid \
--conf-path=/www/webserver/nginx-1.17.7/conf/nginx.conf \
--error-log-path=/www/webserver/nginx-1.17.7/logs/error.log \
--http-log-path=/www/webserver/nginx-1.17.7/logs/access.log \
--http-client-body-temp-path=/www/webserver/nginx-1.17.7/temp/client \
--http-proxy-temp-path=/www/webserver/nginx-1.17.7/temp/proxy \
--http-fastcgi-temp-path=/www/webserver/nginx-1.17.7/temp/fcgi \
--http-scgi-temp-path=/www/webserver/nginx-1.17.7/temp/scgi \
--http-uwsgi-temp-path=/www/webserver/nginx-1.17.7/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 \
--with-http_geoip_module \
--add-module=/root/ngx_http_substitutions_filter_module-master \
--with-openssl=/root/openssl-1.1.1d
' ^; g6 C2 Y% ]
编译 make! K# z' Y. \( v. Y, i
安装 make install4 K  L1 w! w* d2 b! \# }8 ^3 |
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-10-28 22:41 , Processed in 0.047142 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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