找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 8445|回复: 0

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

[复制链接]
发表于 2020-1-17 14:11:05 | 显示全部楼层 |阅读模式
下载需要组件
2 z7 C. F; {' x: a' I" ^wget http://nginx.org/download/nginx-1.17.7.tar.gz5 O3 U; [3 T  V2 D6 h
tar xvzf nginx-1.17.7.tar.gz/ Y6 H% m, p+ P# T' I3 e6 P& o1 j# j

. ^( V$ F3 b  r; K# owget https://www.openssl.org/source/openssl-1.1.1d.tar.gz, o$ X0 E5 V; T( `( ~7 ]2 I+ J
tar xvzf openssl-1.1.1d.tar.gz! j0 X& L4 M* d# b
: j; S4 D8 z  R, U. z9 m: O
wget https://ftp.pcre.org/pub/pcre/pcre-8.43.tar.gz; D5 l0 }0 I8 q! a6 o
tar xvzf pcre-8.43.tar.gz
) y; b7 B$ p1 F9 Y( T# C+ p2 R1 T
" n/ Z- q- t) j$ U% {& awget https://github.com/yaoweibin/ngx ... /archive/master.zip -O ngx_http_substitutions_filter.zip8 K  V( ?# B1 a9 H0 X: J& t5 `
unzip ngx_http_substitutions_filter.zip
, @6 i6 r2 L; U# k2 I
  R4 h5 h2 a, A$ g: ^( \1 T4 pcd nginx-1.17.7, ?- U0 \9 i" K0 e* K5 J5 E

3 v/ r- W1 g% g! H5 n. @; ^6 d2 U  C5 _; A
配置文件2 _  V0 [: g3 x& G
[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  V5 M  ]7 u4 t8 B5 D
编译 make& {: e& z9 \* v% W
安装 make install9 E5 b. U2 }% D
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-4-4 18:42 , Processed in 0.065278 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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