找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 7757|回复: 0

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

[复制链接]
发表于 2020-1-17 14:11:05 | 显示全部楼层 |阅读模式
下载需要组件, h4 z& F2 _' c' J3 E
wget http://nginx.org/download/nginx-1.17.7.tar.gz
& B$ f( d9 l# qtar xvzf nginx-1.17.7.tar.gz* G& ^" ~$ d( ^# I# D
% J2 C2 [9 P0 b& d7 z2 R5 ~
wget https://www.openssl.org/source/openssl-1.1.1d.tar.gz0 g2 @+ q5 R2 H+ a( ]3 F" L
tar xvzf openssl-1.1.1d.tar.gz
* o! {$ _$ F7 n/ _" O- I# M1 d+ ~% O$ @/ C4 u% D
wget https://ftp.pcre.org/pub/pcre/pcre-8.43.tar.gz
0 p$ m6 V+ K2 U. l; D) O. N, Utar xvzf pcre-8.43.tar.gz
/ l3 V: L2 Z, ?, y: l: v
- a8 ~+ f2 N! h1 k" s7 @8 Zwget https://github.com/yaoweibin/ngx ... /archive/master.zip -O ngx_http_substitutions_filter.zip
" q/ P5 U. |& w4 munzip ngx_http_substitutions_filter.zip
' K0 b, z' z% r" [  |6 y. D
  _% C+ o# `: m% E) U" Icd nginx-1.17.7
. E+ ~) S8 O) l6 Q4 s. g# X4 a& i& y5 O. |; [7 e# M

7 [4 a: ?7 U2 t% ^1 b- c) m* j配置文件
& x2 X' l8 X& r1 s" Q! P/ x
[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

% ?: ^4 o- n& `编译 make. J6 t. E' V) N
安装 make install) V9 K- F% h& r5 i
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-1-10 14:35 , Processed in 0.034328 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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