找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 9630|回复: 0

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

[复制链接]
发表于 2020-1-17 14:11:05 | 显示全部楼层 |阅读模式
下载需要组件5 z+ P+ @$ [5 Q0 H! z3 p
wget http://nginx.org/download/nginx-1.17.7.tar.gz! O4 i( e4 @3 N5 g+ M, r" I
tar xvzf nginx-1.17.7.tar.gz
$ g& r' z+ V# U9 K9 ]$ y
& {6 ~6 C( |, l  o1 awget https://www.openssl.org/source/openssl-1.1.1d.tar.gz
6 b! O$ b+ g/ Utar xvzf openssl-1.1.1d.tar.gz
* m6 d/ b% J, K# w6 p, U' _- d& `" |. V1 v9 P3 g7 M
wget https://ftp.pcre.org/pub/pcre/pcre-8.43.tar.gz
; P2 E9 y$ l5 Ftar xvzf pcre-8.43.tar.gz/ k! {! N! S) F9 w; G! P

) [- l, N! I0 y! E9 ~% Iwget https://github.com/yaoweibin/ngx ... /archive/master.zip -O ngx_http_substitutions_filter.zip
  F4 a; {3 S3 J3 q7 [' w5 P2 B6 munzip ngx_http_substitutions_filter.zip5 R9 {5 Y* G  y3 c  X  g/ [

( T2 R0 F: ^1 @) @5 _9 X2 t1 _2 D: Ecd nginx-1.17.7/ S' Y: r, I& T: P. x
8 v' e$ y4 F3 ]1 C& y

5 S; @# A- p" Q配置文件7 [6 g) p' p. i
[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

; y' a- J. }* y$ E- `* A) d编译 make6 I8 k1 [1 Q7 K% {* m8 ~3 N
安装 make install8 }1 g$ b; V1 J9 D  T9 E
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-8-6 01:35 , Processed in 0.069583 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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