找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 9934|回复: 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
$ y& P/ `1 y  N' n7 N* \下载需要组件* H3 y! \1 f- T
wget http://nginx.org/download/nginx-1.15.9.tar.gz# c# N) }1 m: w: I* E! N
tar xvzf nginx-1.15.9.tar.gz2 }  x  K! v# @/ B4 x$ Z
$ g/ T  `$ _3 V% ?% w
wget https://www.openssl.org/source/openssl-1.1.1b.tar.gz1 W3 e- j9 F! p6 H# ~2 p+ _) e2 l
tar xvzf openssl-1.1.1b.tar.gz
' A6 |+ l, H' a+ {7 |
6 C8 J; s1 N2 u4 m2 [6 Vwget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.43.tar.gz) y' F+ D1 }# K" C
tar xvzf pcre-8.43.tar.gz9 g3 g7 i# b  F4 D
) p9 c' R! p/ p
wget https://github.com/yaoweibin/ngx_http_substitutions_filter_module/archive/master.zip -O ngx_http_substitutions_filter.zip
+ v! V8 u0 g! D" N/ Punzip ngx_http_substitutions_filter.zip
' Q8 |0 }  D- h+ q% D/ K! w4 v/ X* y+ ^/ ^8 _
cd nginx-1.15.9
& R* H- w* E- k! b% O% K, V' l8 @% A+ s: a7 s1 p
配置文件8 q  g3 }5 e0 ~" M
3 C- L8 f, }3 Q3 r) x8 c) a( n) t

6 C! F: H/ f8 C- m0 S
[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
; P" V3 w9 w& `& x
编译 make
9 E! K, }4 ^1 |, x5 C' c6 \安装 make install
. m  Q& A& g3 ^. f5 \
) c  e' a: {$ u2 a$ e  `; r  ?其它的启动配置文件找度娘。; V/ `6 o7 D2 L- |: I9 O" k7 U
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-9-20 02:58 , Processed in 0.065198 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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