找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 9299|回复: 0

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

[复制链接]
发表于 2020-1-17 14:11:05 | 显示全部楼层 |阅读模式
下载需要组件! U4 k6 f$ b: ^2 G
wget http://nginx.org/download/nginx-1.17.7.tar.gz2 E% [; H# u  d5 i
tar xvzf nginx-1.17.7.tar.gz+ `& C8 N) p; {+ z' }* o
* D7 _3 o2 U" S1 b6 ]
wget https://www.openssl.org/source/openssl-1.1.1d.tar.gz
* z; n; H" t' ?tar xvzf openssl-1.1.1d.tar.gz
7 a- Z% ^0 d7 e, u( w& g" h" d8 ]
wget https://ftp.pcre.org/pub/pcre/pcre-8.43.tar.gz
! l4 u1 r8 U" n; ^+ q! Z5 Ktar xvzf pcre-8.43.tar.gz
: X" O2 s8 O3 S6 I% s2 E' v8 B) R3 O
' v% r  ^0 {( S9 I9 b' m/ O; Z. Cwget https://github.com/yaoweibin/ngx ... /archive/master.zip -O ngx_http_substitutions_filter.zip. d6 L; j# y1 Y+ O
unzip ngx_http_substitutions_filter.zip
$ }3 o* D" p! F3 p, k3 v) ]6 E
1 K2 Z% ?& [- w/ bcd nginx-1.17.7
- a7 D- Z: a8 K# a4 `, j( U. O
2 W6 E# T' m: D% W: N, m7 M/ s5 @. O, {* P
配置文件
" F+ O  m* S1 ]
[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

/ r( D! o0 b+ M% m' e& h+ S' R1 n+ O编译 make. M- w' S$ F; A  n8 z$ N
安装 make install! B0 x1 A4 M  g8 k
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-7-1 03:00 , Processed in 0.062343 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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