找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 4661|回复: 0

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

[复制链接]
发表于 2020-1-17 14:11:05 | 显示全部楼层 |阅读模式
下载需要组件! J! u9 a- ^% U- X& [6 S1 m0 R  I
wget http://nginx.org/download/nginx-1.17.7.tar.gz" c% x# W; s0 h6 f
tar xvzf nginx-1.17.7.tar.gz
% I" i& W7 ]2 P4 x8 t/ I4 K+ |% E5 K' ]! _
wget https://www.openssl.org/source/openssl-1.1.1d.tar.gz8 B" l; r7 X. T2 w9 p1 N
tar xvzf openssl-1.1.1d.tar.gz
9 n5 c. U9 D* X8 T& o! u( h, H5 A; `' q6 D, m/ _
wget https://ftp.pcre.org/pub/pcre/pcre-8.43.tar.gz
3 o9 j; b$ K: b5 G) \# K" utar xvzf pcre-8.43.tar.gz
( s/ s; R9 Y. ~& N1 u! A. Q. W4 J: V
wget https://github.com/yaoweibin/ngx ... /archive/master.zip -O ngx_http_substitutions_filter.zip
7 Z8 d/ q! {* R4 ^( iunzip ngx_http_substitutions_filter.zip
9 K: b* t; a0 p' `( v
3 ?6 M2 `1 T$ ^6 R2 Qcd nginx-1.17.79 A0 n4 N4 v0 k$ m, E0 M# j

$ s% W: j6 g0 v- i4 w' O* D; U5 B1 A9 \& R# R0 E# Z
配置文件
8 v/ Z/ E: Q+ e6 w& F9 ~' P
[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
& q7 l0 B7 ]8 r+ }
编译 make9 U3 W& P. l0 D4 M4 w% _1 n* {
安装 make install
0 o5 g; Y+ ~1 n) j" ]; V: r! x
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2024-10-18 12:47 , Processed in 0.110750 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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