找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 8749|回复: 0

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

[复制链接]
发表于 2020-1-17 14:11:05 | 显示全部楼层 |阅读模式
下载需要组件' S3 l( `- R( a& W
wget http://nginx.org/download/nginx-1.17.7.tar.gz
& N, z! W* Q& |7 }2 ^+ ntar xvzf nginx-1.17.7.tar.gz9 ?" N  K' ~( d# m% G  t: C

. M1 D- F& H- Jwget https://www.openssl.org/source/openssl-1.1.1d.tar.gz9 G$ \  w4 l% z/ t9 G& F' q: w
tar xvzf openssl-1.1.1d.tar.gz
7 k9 H0 P  @/ H( o2 N& P. D
( ]( @7 b) M! t! `& zwget https://ftp.pcre.org/pub/pcre/pcre-8.43.tar.gz# b! F. Y" M2 A4 m4 k" b, Y
tar xvzf pcre-8.43.tar.gz3 D* {) Q) R! b' O/ s3 w$ N# Y

8 M7 Y/ \. w8 r# r! W% _. t1 Wwget https://github.com/yaoweibin/ngx ... /archive/master.zip -O ngx_http_substitutions_filter.zip6 {3 x* L( Z& [2 Q/ e- J
unzip ngx_http_substitutions_filter.zip* l$ i' M) ^# B# R6 h: E
/ K5 b$ ^5 h8 _' W% _- Y
cd nginx-1.17.7
. G' Y1 g  F) Z& ]
8 G6 U( I: K3 E/ p+ n  v5 f& P/ M: K. Y( s- v
配置文件: |# C2 d' n) N0 h
[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

5 L7 G# c' b" m) G+ q4 M编译 make7 @" M* O% _( t9 H
安装 make install
+ n% ^" k8 _3 l! R7 x! Q
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-5-7 00:36 , Processed in 0.077200 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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