找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 8877|回复: 0

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

[复制链接]
发表于 2020-1-17 14:11:05 | 显示全部楼层 |阅读模式
下载需要组件
: J5 H( a7 X" Qwget http://nginx.org/download/nginx-1.17.7.tar.gz9 i- ?% B1 T' n& ^! M% \; k! l
tar xvzf nginx-1.17.7.tar.gz
0 y& ~6 h% c  j4 P) E7 ~5 i) Q
& {2 v& Y2 K2 }3 Q! e6 |, Vwget https://www.openssl.org/source/openssl-1.1.1d.tar.gz
) d1 E' {& H$ y/ U$ ctar xvzf openssl-1.1.1d.tar.gz
# S# o! z" Q8 V& O- p  r1 D& }# m: `
wget https://ftp.pcre.org/pub/pcre/pcre-8.43.tar.gz
* |3 v9 I' Y+ U# [- E- j- M) B( htar xvzf pcre-8.43.tar.gz3 I; I6 C5 G/ _, W; P- s$ X7 z
5 L8 ^3 v$ k" G6 t! H" o: W5 A
wget https://github.com/yaoweibin/ngx ... /archive/master.zip -O ngx_http_substitutions_filter.zip8 s; t4 v9 Z" R! x* c' |
unzip ngx_http_substitutions_filter.zip2 ~; X$ I9 ]! @" Z% K' f

" c; }3 L9 B7 ~cd nginx-1.17.7
' z3 z) A4 T. a: R) C2 D  |1 T' ?5 e
6 L( d8 R, N' Z' r4 G
配置文件
: N( F( @% M$ d  I/ u
[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
& |: Z% |/ s! X% k3 L  b( ^
编译 make
" @3 ]% g5 l+ U) w( h( b" p安装 make install' G- A& J+ |' f5 n) {
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-5-16 19:30 , Processed in 0.065132 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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