找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 9268|回复: 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
7 p9 r% P. b% k, V2 L: W9 p下载需要组件7 |; A1 t5 c  \2 }
wget http://nginx.org/download/nginx-1.15.9.tar.gz
* d) }6 B! e2 ~tar xvzf nginx-1.15.9.tar.gz. P8 x% x0 C( R& L9 L' {  w0 q

* j: S& I1 J) ]% j, t: jwget https://www.openssl.org/source/openssl-1.1.1b.tar.gz. h0 F0 z! m2 V( [
tar xvzf openssl-1.1.1b.tar.gz) p& X7 `  f4 z; g8 u; f6 q1 K# D

# M6 v! G. q' pwget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.43.tar.gz6 x& i- e! M8 O# g* w
tar xvzf pcre-8.43.tar.gz
1 \- u/ a; o6 S5 H, g" n
& Z9 {. D7 s% B9 B: ~" \" rwget https://github.com/yaoweibin/ngx_http_substitutions_filter_module/archive/master.zip -O ngx_http_substitutions_filter.zip- Z# H6 u: h4 t1 k% [7 s
unzip ngx_http_substitutions_filter.zip3 K8 \" K+ I0 A) L* f

! P% b+ E, _( O7 Mcd nginx-1.15.9
9 a* g2 Z( @8 R/ V6 r& }
% z) W! H# Z& t# R7 C配置文件
; P  ^) u0 U! A
; Y% v9 O7 ]( E3 {) R% {: c
8 E, T, W9 V2 U/ m' _; C5 m2 D9 n8 Q) X
[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
, a$ `0 e1 f) ]
编译 make/ p( z8 T  c6 O0 J) D* I
安装 make install' [. x4 V: k9 D
" c" A: H/ e, n4 ]$ p$ Y
其它的启动配置文件找度娘。
% X7 D4 a8 [2 E7 A" X; Z3 c8 o* j
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-6-25 09:54 , Processed in 0.063480 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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