找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 9023|回复: 0

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

[复制链接]
发表于 2019-3-25 10:24:34 | 显示全部楼层 |阅读模式
话不多说,我的系统的centos6,参考帖子http://bbs.swdyz.com/forum.php?mod=viewthread&tid=418
, ^; V) R( F  O2 L, S$ u8 i, A下载需要组件
1 ~, \: E) h/ P3 |: ~4 o: ewget http://nginx.org/download/nginx-1.15.9.tar.gz
. B# c) H- A1 P, f* h% H: A; c0 ~tar xvzf nginx-1.15.9.tar.gz
) h: a2 ~2 f9 S' {0 E4 E* a& [, h/ w9 v( m8 v  `. l, O
wget https://www.openssl.org/source/openssl-1.1.1b.tar.gz7 m7 M1 \* S: x# k
tar xvzf openssl-1.1.1b.tar.gz
! y) D- [4 t, m& t6 f
$ x7 e4 _1 q0 [+ Z$ fwget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.43.tar.gz
. ]7 J: M. l# f% p7 F, d1 J& _% p9 @tar xvzf pcre-8.43.tar.gz
* U. B6 P4 \' e' Z6 I1 v, C5 `1 B0 \
wget https://github.com/yaoweibin/ngx_http_substitutions_filter_module/archive/master.zip -O ngx_http_substitutions_filter.zip
4 T) ], n% k) [/ e" r. dunzip ngx_http_substitutions_filter.zip
5 B& I) a, f* X" i  x# Y4 R7 n$ |" u* s8 o
cd nginx-1.15.9/ p( `  ~) ~2 a) Q4 x

' U3 Y9 U$ l0 c: q配置文件& ?4 F% m* j, w( A' s
$ i4 r( ]% g9 }9 C7 w) k
* u3 I- J, O  ~! [* ?2 B1 I
[Shell] 纯文本查看 复制代码
./configure \
--user=www \
--group=www \
--prefix=/www/webserver/nginx-1.15.9 \
--sbin-path=/www/webserver/nginx-1.15.9/sbin/nginx \
--pid-path=/www/webserver/nginx-1.15.9/logs/nginx.pid \
--conf-path=/www/webserver/nginx-1.15.9/conf/nginx.conf \
--error-log-path=/www/webserver/nginx-1.15.9/logs/error.log \
--http-log-path=/www/webserver/nginx-1.15.9/logs/access.log \
--http-client-body-temp-path=/www/webserver/nginx-1.15.9/temp/client \
--http-proxy-temp-path=/www/webserver/nginx-1.15.9/temp/proxy \
--http-fastcgi-temp-path=/www/webserver/nginx-1.15.9/temp/fcgi \
--http-scgi-temp-path=/www/webserver/nginx-1.15.9/temp/scgi \
--http-uwsgi-temp-path=/www/webserver/nginx-1.15.9/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 \
--add-module=/root/ngx_http_substitutions_filter_module-master \
--with-openssl=/root/openssl-1.1.1b

: c& ^& O6 [+ j& u2 j" V编译 make- b/ B# |8 @# G2 S8 B0 o
安装 make install
+ m# @$ X' ?( L' _# I; V6 z* l! h( m. c4 H
其它的启动配置文件找度娘。5 k% u" B& o+ q  `5 ?. v7 M2 n! P7 K4 k) \
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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