找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 10134|回复: 0

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

[复制链接]
发表于 2020-1-17 14:11:05 | 显示全部楼层 |阅读模式
下载需要组件  c) S. l% H" d6 Q! `1 `! G2 g
wget http://nginx.org/download/nginx-1.17.7.tar.gz
& z: t! B4 Y3 x/ n& J# c5 O! otar xvzf nginx-1.17.7.tar.gz
* U5 t1 X( J% [0 D: U; ^, z
' W. f) ~) M) }wget https://www.openssl.org/source/openssl-1.1.1d.tar.gz
6 g* n7 m; t$ I; H# a! q9 p) ^1 Otar xvzf openssl-1.1.1d.tar.gz5 W) N" Z# T$ a# B) f5 k. ~
, r5 ]% E) m" Y$ V. K
wget https://ftp.pcre.org/pub/pcre/pcre-8.43.tar.gz
" K& j& J# f) t7 d- _8 Utar xvzf pcre-8.43.tar.gz" l, \; u% l' ]& C

' J! m$ d2 N. \( i3 l+ b* v" L( Swget https://github.com/yaoweibin/ngx ... /archive/master.zip -O ngx_http_substitutions_filter.zip; |9 M4 C; n% B" g, C) Z
unzip ngx_http_substitutions_filter.zip/ f0 E- s7 h  X

1 u( O* Z' N2 a: z1 e/ R7 U* i( o, Ecd nginx-1.17.75 ^0 W5 V5 ?8 k

/ \& w1 J& A7 ]$ {
. R1 S: u* P* n配置文件$ e8 }; l( v5 E& \* X% E' {1 q
[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
; V5 L+ Y& B, K. S+ U
编译 make
8 I& H+ d3 Q( {4 G安装 make install7 W7 h: o; R, F( q/ i4 m9 b/ ]
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-9-29 07:25 , Processed in 0.070212 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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