找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 8131|回复: 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 q9 `, D/ ~* C! J; r  d下载需要组件& r. ?6 M( o# ^" n6 g4 y+ ~0 P
wget http://nginx.org/download/nginx-1.15.9.tar.gz; p- n: E1 v9 f7 J+ i- c) l
tar xvzf nginx-1.15.9.tar.gz! c. |5 C# j$ P* u; ~1 R

7 I) D0 `0 [# e' O6 n2 }wget https://www.openssl.org/source/openssl-1.1.1b.tar.gz
8 K) U2 u. i) f$ vtar xvzf openssl-1.1.1b.tar.gz
' W) e. x$ C% g
  T  N+ \' m' p' G3 I& E9 Dwget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.43.tar.gz+ K& H7 f8 v7 |2 h0 G
tar xvzf pcre-8.43.tar.gz- C. c5 _/ t' P( Y; W& k

; v& ~8 J; z8 S" u% b7 wwget https://github.com/yaoweibin/ngx_http_substitutions_filter_module/archive/master.zip -O ngx_http_substitutions_filter.zip
. j. c$ L# j0 Dunzip ngx_http_substitutions_filter.zip
4 b8 s" e8 _& p8 d! J$ w3 r
2 S: L0 x/ h9 Zcd nginx-1.15.9
: S# F+ N6 M4 p+ {" \1 R2 q
0 Z- q6 W, V' i8 A  `+ q- R配置文件
* \: I! t9 q' v/ K' t
' m! Z* V8 C6 h3 ?, Y
& n( Q1 K! A4 L
[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

( R3 t; W2 [( L( t, Z" W编译 make
$ |1 A0 [0 h% Z* J6 g7 i, Y安装 make install
) U5 P" \. g% j9 L" a' j+ v* ~* k& ^7 W
其它的启动配置文件找度娘。- [/ p2 l8 _- Q& @& b5 k) W
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-2-4 05:11 , Processed in 0.068989 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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