找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 9195|回复: 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+ G' w1 I) J  z2 a' n
下载需要组件
7 i( x3 C/ Z3 v: c% t( x' Q' O- zwget http://nginx.org/download/nginx-1.15.9.tar.gz- f) c0 ~5 w3 d* s0 Q% l5 F
tar xvzf nginx-1.15.9.tar.gz
0 \  ~1 |2 X  a& P1 Y1 n% k2 j6 S" j3 J+ c$ m$ o
wget https://www.openssl.org/source/openssl-1.1.1b.tar.gz
% e- O! r. d4 N  D- b8 X. m" P/ Dtar xvzf openssl-1.1.1b.tar.gz3 P" t2 _- n8 w. d5 w0 J9 O
  ~3 l) j/ t3 B( ^; x
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.43.tar.gz
/ o( i9 ]9 d( etar xvzf pcre-8.43.tar.gz
1 U7 @% b1 a# W  ]9 x4 P" A) _7 r' u) h
wget https://github.com/yaoweibin/ngx_http_substitutions_filter_module/archive/master.zip -O ngx_http_substitutions_filter.zip4 O: ~8 f( p" k8 g" V) ^
unzip ngx_http_substitutions_filter.zip. I& d! H- L2 c6 p& Q

- M: x7 ]4 {# S% }0 ycd nginx-1.15.99 ^/ t, F4 {6 Y# q' C" k

, v# m/ x! p. w配置文件6 g% H! i8 R% N1 z

. v$ u$ \3 q9 }! u
- Z* |+ g: \7 U: U# M' L  I6 }
[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

5 y, e  I5 G% m. B编译 make, a- [$ X- z# r
安装 make install2 A, T8 C% y6 O/ a+ @9 k0 H

' h! k9 U* r# C# C+ I# W3 O其它的启动配置文件找度娘。! @; Z5 U3 a( X2 P7 |
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-6-16 09:44 , Processed in 0.069733 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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