找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 8277|回复: 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
6 a/ @; o/ x6 b3 Q下载需要组件! v  U) F+ z- A0 B. Q% a+ n
wget http://nginx.org/download/nginx-1.15.9.tar.gz% s" b. x/ x, W7 O7 L9 g5 ?; v8 q
tar xvzf nginx-1.15.9.tar.gz1 t2 J- ~. y1 L" F6 _4 U/ ~
9 O) V1 F3 o, I) o0 R8 ~! f
wget https://www.openssl.org/source/openssl-1.1.1b.tar.gz
3 ]# l% N" v: J  vtar xvzf openssl-1.1.1b.tar.gz: {- f6 s& O7 b  u: L4 c* ]! L
& @$ b% M' ^0 L# q+ X! M2 d. T4 Z
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.43.tar.gz
, P1 c/ h6 ~- |' E/ C0 vtar xvzf pcre-8.43.tar.gz
' v$ h7 D. G" G8 z- \# E
# m+ S( r4 Z% y' t/ d, m5 Swget https://github.com/yaoweibin/ngx_http_substitutions_filter_module/archive/master.zip -O ngx_http_substitutions_filter.zip
# k0 ^! C) q& X/ P9 y$ hunzip ngx_http_substitutions_filter.zip
4 g9 X+ b4 V# n) ?6 d0 Q5 L' u( V) Z7 r6 c' i/ c0 y
cd nginx-1.15.9; d' M) T/ n! b" Z1 @! W) U/ n' f' N

, @* X+ G* |' \6 e配置文件
$ W* j6 m% C: W/ j1 D; v
! r; }8 g7 _1 l0 T. P5 |1 A5 h* m" e6 B" M+ f  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

2 o8 z- w7 }: h编译 make
) ?3 y+ ^3 E/ g( C安装 make install  Z1 _% }# n. \) T" R1 f$ O; r7 o" L) _

) a; W, G9 P# B, i其它的启动配置文件找度娘。" J% W+ M3 C6 ?9 {" H! K
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-2-26 10:38 , Processed in 0.067453 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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