找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 9984|回复: 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% |( z) |; S! d. e# f! @
下载需要组件
) K/ ]4 D" b- l; Q+ ]  z" bwget http://nginx.org/download/nginx-1.15.9.tar.gz
) ]6 O, l1 [8 s; t4 l! X; f7 c8 ftar xvzf nginx-1.15.9.tar.gz
" w, {8 x; Z  u7 n, |2 Z9 e: @9 n) r  U0 w
wget https://www.openssl.org/source/openssl-1.1.1b.tar.gz% ^5 x$ l- W- j" q, e. L* Y
tar xvzf openssl-1.1.1b.tar.gz
: k+ K/ c, y5 a! _& X
, l& I, i! c) B' kwget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.43.tar.gz5 q1 J% w+ G( @2 R# T
tar xvzf pcre-8.43.tar.gz" t3 ?" k" n5 U; w" b. Y
8 X% f) V: O) m' K6 I1 R8 V8 r% v
wget https://github.com/yaoweibin/ngx_http_substitutions_filter_module/archive/master.zip -O ngx_http_substitutions_filter.zip
, v; n5 X+ S1 D0 a- W2 xunzip ngx_http_substitutions_filter.zip- [& K4 S1 ]* Z1 u3 [* {' b) R

2 ?. e. a1 u& B7 Gcd nginx-1.15.9
. B  Z- T( W. ^: [/ e9 n! [1 y& C6 J+ _+ }8 W
配置文件
* }9 Y! D9 k1 I. Y6 m( j  c! W2 E* C( m5 g/ t

+ C; a* T, d& F* A) p& 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

6 l# @5 n1 `# v% A0 }编译 make/ v7 Q# v8 G8 Z8 H
安装 make install
8 q5 `5 j# ?! E7 R; f( L, n! Z' y. y
其它的启动配置文件找度娘。
6 N- k/ f& Y9 k% f
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-9-29 20:45 , Processed in 0.049564 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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