找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 8530|回复: 0

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

[复制链接]
发表于 2020-1-17 14:11:05 | 显示全部楼层 |阅读模式
下载需要组件
6 U6 |6 E5 D+ a8 O% @1 A; qwget http://nginx.org/download/nginx-1.17.7.tar.gz% t5 E; B: l* b( r; t
tar xvzf nginx-1.17.7.tar.gz
; ?! O6 V% {5 J
% Z. W4 N! D1 I: A* h  Ywget https://www.openssl.org/source/openssl-1.1.1d.tar.gz: k2 d9 U- X/ G% S' q- }
tar xvzf openssl-1.1.1d.tar.gz- z# U. ?2 W1 B0 G  V
) _- _) j" r2 x% U* X
wget https://ftp.pcre.org/pub/pcre/pcre-8.43.tar.gz
! P& @3 S# G0 F% vtar xvzf pcre-8.43.tar.gz
# S; ], w: [5 S1 N( U! F) ?
7 Z# i! n0 Y: h. O6 D& R' cwget https://github.com/yaoweibin/ngx ... /archive/master.zip -O ngx_http_substitutions_filter.zip
; |' Z/ o4 L5 J$ t4 n/ B% E8 bunzip ngx_http_substitutions_filter.zip+ y- f% Z2 B# I% Z8 [9 S+ j

. N! Q) m, X7 [" j0 Bcd nginx-1.17.7
7 \* Y+ O, w' H/ B* Y2 n- B
* q" Q" D, z4 v/ f! L$ C) e" F5 H- M! @
配置文件+ P+ W( k0 H3 d* _' V) e! ~" N- \
[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, Z5 W. [: `编译 make
( s! s5 v3 I+ `6 A安装 make install0 @% ]. F: g) ^$ R
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-4-12 22:37 , Processed in 0.066656 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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