找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 7384|回复: 0

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

[复制链接]
发表于 2020-1-17 14:11:05 | 显示全部楼层 |阅读模式
下载需要组件- c5 |2 S) w: P' z
wget http://nginx.org/download/nginx-1.17.7.tar.gz+ @  C; D: z3 d+ G6 H4 L7 P
tar xvzf nginx-1.17.7.tar.gz
- x% v! X9 G  Z8 e6 r
0 q8 j. d6 C8 ?+ {8 bwget https://www.openssl.org/source/openssl-1.1.1d.tar.gz
# w) A+ M$ R, }/ Mtar xvzf openssl-1.1.1d.tar.gz. I( ^7 `2 {. l# j/ e
/ R5 M. b. E4 H! G, @! O" h
wget https://ftp.pcre.org/pub/pcre/pcre-8.43.tar.gz
6 A, ~4 n, q- [% A" ctar xvzf pcre-8.43.tar.gz
& D0 G) S' u& u+ B5 G
- Z, H. d1 I3 q, Awget https://github.com/yaoweibin/ngx ... /archive/master.zip -O ngx_http_substitutions_filter.zip
8 [) l( s  Z3 a3 k+ F' b" z: O7 ]. B# Dunzip ngx_http_substitutions_filter.zip
, f5 p& \0 A% H" r( y; \
1 g: ]$ G) \; ~$ `cd nginx-1.17.7# S0 V  j" \' U

- r& S) q0 z  n0 u2 `6 p& i" N* J: _& }
配置文件( h* N. R! R# M: b
[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

  x' q& p% H1 Y4 A8 O9 ]编译 make
6 [4 S: P: l  ~7 Q* e* r6 V安装 make install/ Z6 D1 [7 J7 G  L* |
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-11-16 04:33 , Processed in 0.062115 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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