找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 10069|回复: 0

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

[复制链接]
发表于 2020-1-17 14:11:05 | 显示全部楼层 |阅读模式
下载需要组件
* B2 S/ m% i, v- U+ M+ Iwget http://nginx.org/download/nginx-1.17.7.tar.gz: _  {9 O; s9 V3 R9 d) N8 m6 e0 o6 `
tar xvzf nginx-1.17.7.tar.gz/ u: X$ u; W6 i% X. x& y
2 Y1 M' T) F; f) m7 y' N' u
wget https://www.openssl.org/source/openssl-1.1.1d.tar.gz" d# T1 \9 k- W& M1 ?0 ^
tar xvzf openssl-1.1.1d.tar.gz
6 Z- k0 Q* W0 F2 ^- k
: ^9 S7 `8 z3 P: Xwget https://ftp.pcre.org/pub/pcre/pcre-8.43.tar.gz  _% e* P) z" J  \# r
tar xvzf pcre-8.43.tar.gz
& ?  G; l: c$ U0 E5 p# Y
& v9 S1 f; D9 W% P+ Q3 }' T" W4 Rwget https://github.com/yaoweibin/ngx ... /archive/master.zip -O ngx_http_substitutions_filter.zip) j, W3 M, M: W, a: N
unzip ngx_http_substitutions_filter.zip' [0 A6 `, o3 I; Q

! |  P  Y4 a& p! d1 Dcd nginx-1.17.7
  D: O* x5 }7 u6 d6 t6 l9 {
( P- t! @* G4 X1 U7 S
( a2 o, _/ r4 V3 [配置文件0 Y3 a7 v; d7 _8 p3 \/ h4 k7 m4 [
[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
: q0 U& `( Q9 F% i, h
编译 make* W- E8 S  R  n# ^+ A3 q( o
安装 make install
+ C* }3 Z6 |- W: E: s7 g
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-9-20 02:54 , Processed in 0.052574 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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