找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 8952|回复: 0

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

[复制链接]
发表于 2020-1-17 14:11:05 | 显示全部楼层 |阅读模式
下载需要组件$ j& o" P5 w# O5 u- ?
wget http://nginx.org/download/nginx-1.17.7.tar.gz* d& I/ P: h- \/ B$ W8 q
tar xvzf nginx-1.17.7.tar.gz) X) p" |, Y) o5 N# f" `9 Q
! Q% F- n5 X; X1 u4 i* M1 p
wget https://www.openssl.org/source/openssl-1.1.1d.tar.gz  o0 d$ P# I% T  G/ p
tar xvzf openssl-1.1.1d.tar.gz
6 @5 A. n' O  r! y7 w. S) W9 {; Q. P, t$ s! h
wget https://ftp.pcre.org/pub/pcre/pcre-8.43.tar.gz
1 V' j1 U6 C+ U$ ^% Ktar xvzf pcre-8.43.tar.gz3 y; @9 g" Z# k- L/ n* A1 h3 W* i
- J8 h# m4 P2 m  B+ `/ [9 D( n
wget https://github.com/yaoweibin/ngx ... /archive/master.zip -O ngx_http_substitutions_filter.zip
- o0 B0 [% @+ W) b% D& Funzip ngx_http_substitutions_filter.zip
& q. H5 W/ a' L" O3 Q. ?8 h& Y3 {: z! G9 _
cd nginx-1.17.7
, V5 F. g0 w4 W% u* p. a' U, k. ], Z$ H/ H+ I" l3 T8 [
9 @9 u8 T- h3 W: a# G8 v
配置文件0 c1 Z# x$ Q  S! C4 g4 C. w1 C
[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

6 }  Z" F* i0 [9 \/ \编译 make
9 [4 Z: p4 X# @7 X安装 make install* w/ O' g% @' e
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-5-25 10:00 , Processed in 0.053877 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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