找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 8299|回复: 0

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

[复制链接]
发表于 2020-1-17 14:11:05 | 显示全部楼层 |阅读模式
下载需要组件% u+ T- B9 @% x% U& _2 m0 w3 y$ ~
wget http://nginx.org/download/nginx-1.17.7.tar.gz1 x+ t1 i; A2 b3 S
tar xvzf nginx-1.17.7.tar.gz# a8 M' E9 \5 b# n' x+ I

- {. x( H0 h: j  zwget https://www.openssl.org/source/openssl-1.1.1d.tar.gz
/ t4 L) u% U  ]- X, Q) b" a: xtar xvzf openssl-1.1.1d.tar.gz" y8 D* d& b, Z: ^
5 m' |4 {! E: V: B. f) g# e
wget https://ftp.pcre.org/pub/pcre/pcre-8.43.tar.gz
0 a, k# ~( d+ H, K- Star xvzf pcre-8.43.tar.gz  m% ^1 d2 ^4 ?$ _( d  `, A6 o
3 O) D7 ~/ H% ?# H' J: j  h9 a3 }
wget https://github.com/yaoweibin/ngx ... /archive/master.zip -O ngx_http_substitutions_filter.zip
" `3 R/ l  }$ p6 f( x+ h: w" tunzip ngx_http_substitutions_filter.zip# m2 |* k7 p  @( M. x& R8 _/ t$ @2 z

) E/ u! f8 _* H0 Y4 z7 }- q  Xcd nginx-1.17.75 h+ k. l2 ]" `3 {5 R3 |

4 o7 b+ G! O% q9 r6 I* H! K1 v, W8 R1 f$ b; r
配置文件
* Y/ O* A6 Z; a6 l& o: N, @& H  v4 A
[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
" U% m) ^; h. X# {
编译 make
8 m# ~, B. x" Z9 N8 i) y% j; t安装 make install
3 N- T- Y) I3 P: q! I
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-3-23 16:42 , Processed in 0.071776 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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