找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 9301|回复: 0

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

[复制链接]
发表于 2020-1-17 14:11:05 | 显示全部楼层 |阅读模式
下载需要组件/ G! ]% w% F1 `3 [" M  P
wget http://nginx.org/download/nginx-1.17.7.tar.gz! X; f: P, k8 r( n+ o, N7 T2 @
tar xvzf nginx-1.17.7.tar.gz
2 _+ p( L2 ?% W! d9 k3 i6 @. r$ Y. u( v( x# \% U
wget https://www.openssl.org/source/openssl-1.1.1d.tar.gz
( ]8 N# i" `* K' i4 O7 Ltar xvzf openssl-1.1.1d.tar.gz4 F+ k  M4 O4 o" o) R" ]$ ^4 h
7 n( N. L! u# \. a  J7 r
wget https://ftp.pcre.org/pub/pcre/pcre-8.43.tar.gz
- N) o$ S: k* |% E" J9 Ktar xvzf pcre-8.43.tar.gz5 u  u. u  j0 J+ f7 k& `% @
) J6 o% h3 W3 k, r/ c2 k
wget https://github.com/yaoweibin/ngx ... /archive/master.zip -O ngx_http_substitutions_filter.zip/ H0 Q4 s* r* k& n$ V
unzip ngx_http_substitutions_filter.zip
; c* _4 O9 K5 }( S3 U8 n, a( I7 l1 V! s: E) `$ e( C
cd nginx-1.17.7/ t" Z6 G1 m$ d8 d/ D' |  ~

; N1 P5 e2 N; f1 P
/ D6 O; J6 M7 J8 c配置文件
, j, U5 C- t& U0 _6 e/ e
[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

  H, e' h- N0 }6 X编译 make- f5 a  O: a6 n) ~/ i2 X- h% a. Q
安装 make install
. R+ V% B3 j; F' t
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-7-1 04:12 , Processed in 0.061790 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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