找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 8338|回复: 0

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

[复制链接]
发表于 2020-1-17 14:11:05 | 显示全部楼层 |阅读模式
下载需要组件
% W  k3 k( a% \* `* R2 Wwget http://nginx.org/download/nginx-1.17.7.tar.gz
: q) z9 P8 @3 P0 ~tar xvzf nginx-1.17.7.tar.gz9 r$ p8 k3 J  H# _
; m! c+ P7 e" k/ L% K
wget https://www.openssl.org/source/openssl-1.1.1d.tar.gz
+ J9 B0 p# l& X! j+ s7 G1 ?tar xvzf openssl-1.1.1d.tar.gz( [6 B$ L0 m8 d( N

$ ?; ^7 R# g5 G2 `wget https://ftp.pcre.org/pub/pcre/pcre-8.43.tar.gz
+ D! U' \1 C7 V' Qtar xvzf pcre-8.43.tar.gz9 w0 c" q9 b/ H1 \% G( g- ~
; K8 K2 U( K4 T* G4 W( M
wget https://github.com/yaoweibin/ngx ... /archive/master.zip -O ngx_http_substitutions_filter.zip
! I) {0 g; m7 \# Wunzip ngx_http_substitutions_filter.zip
) h/ x4 r! ]$ m/ q- u
1 A  p9 H; b- u* u* [& `- N# ~( }; y- Zcd nginx-1.17.77 j+ u7 ~7 }$ L7 l

  O4 [" W" s, c, B
$ |# Q" @7 i$ Q, F& ]. g9 J配置文件+ _: n* e  o0 A, j' h/ h7 I. b
[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; R6 ~- a4 L( X编译 make
: o& d- M$ i( P& v7 _4 g安装 make install+ _; |5 A) e9 d
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-3-26 06:16 , Processed in 0.075404 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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