找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 10180|回复: 0

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

[复制链接]
发表于 2020-1-17 14:11:05 | 显示全部楼层 |阅读模式
下载需要组件
1 V8 `. z4 p) J9 T* ]' i9 Wwget http://nginx.org/download/nginx-1.17.7.tar.gz
  Q2 O: J& m" ^! U# ?) Ntar xvzf nginx-1.17.7.tar.gz  u( z/ T" T4 @& g
+ S( H2 K# ]0 I/ }
wget https://www.openssl.org/source/openssl-1.1.1d.tar.gz! t7 l1 a1 ]( B; u8 |
tar xvzf openssl-1.1.1d.tar.gz
9 z+ z5 [: u: d0 w( W- J8 }& A& l5 ~0 ^4 k/ y& J; Y5 M" |5 p
wget https://ftp.pcre.org/pub/pcre/pcre-8.43.tar.gz& m$ \0 w1 I3 B( A: t9 H& `$ N" h
tar xvzf pcre-8.43.tar.gz
6 Y0 q8 H! G3 V+ x, F4 ]  j0 y# K# b; }  C# }- W  R
wget https://github.com/yaoweibin/ngx ... /archive/master.zip -O ngx_http_substitutions_filter.zip
: {$ z  ^0 j! o. _unzip ngx_http_substitutions_filter.zip* N9 q& ~7 k/ Z/ o

" }: C% W/ u1 \" v. w8 s% Qcd nginx-1.17.7
6 D) R* v8 |6 r% I" e1 u# K4 f- y9 k- [% J: J& w" ?  M# l
' f3 V# p4 Q5 V& N; z% ?
配置文件% H- ]4 D' r0 }, k# ^2 r
[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

% V! J7 |/ E# c3 n8 \编译 make: L% {* ^1 f( |2 C
安装 make install- ?$ K# m4 F" h
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-10-5 01:45 , Processed in 0.064149 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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