找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 7003|回复: 0

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

[复制链接]
发表于 2020-1-17 14:11:05 | 显示全部楼层 |阅读模式
下载需要组件
6 n0 w# Y' }! Rwget http://nginx.org/download/nginx-1.17.7.tar.gz
2 w- y6 X. }/ H* H: m+ U) Rtar xvzf nginx-1.17.7.tar.gz% t- M8 E6 x: b
6 a, }. v6 X/ e# [$ ~
wget https://www.openssl.org/source/openssl-1.1.1d.tar.gz8 R/ R* {* r. g; j* y
tar xvzf openssl-1.1.1d.tar.gz
# K" @+ B  W. m1 g
3 B6 _+ l6 o. {wget https://ftp.pcre.org/pub/pcre/pcre-8.43.tar.gz! R4 J4 L1 R# J) D& H. O( b
tar xvzf pcre-8.43.tar.gz! n$ p5 {8 U$ I' @! o5 l  l* C
$ u7 r% c! @1 f  |# j* ?
wget https://github.com/yaoweibin/ngx ... /archive/master.zip -O ngx_http_substitutions_filter.zip
/ \. o/ S! ?1 a; m; d' z1 |/ zunzip ngx_http_substitutions_filter.zip9 Y( \) U: w. y1 g) X& v
; v) `- w+ x/ {, ]
cd nginx-1.17.78 k' b) ?1 ~( f/ O1 u! p* Z

" Q) e8 Y; o# p: c$ J
9 o! D; h4 w4 ]2 j2 h配置文件
8 R" L! k- G* g8 X  Z
[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
/ B+ ~9 f- j. M0 ^8 {4 }* A
编译 make
0 q+ r, j- x5 |) f. o0 a安装 make install9 o* Z: A" }8 [! k8 O$ u& W$ H; h6 W
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-9-19 09:59 , Processed in 0.040022 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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