找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 9113|回复: 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' R2 a6 K! x; O. n
下载需要组件) D- d" I; ?0 t3 l
wget http://nginx.org/download/nginx-1.15.9.tar.gz! F, H1 P  o" d: d0 ?4 l. V1 `1 }
tar xvzf nginx-1.15.9.tar.gz
7 D% s6 a, l5 X8 g9 |
9 d/ |9 N  V# wwget https://www.openssl.org/source/openssl-1.1.1b.tar.gz3 t. r1 }: M+ o7 [+ C$ Z
tar xvzf openssl-1.1.1b.tar.gz, H. ^4 |8 g4 i/ i8 a) I' Z- F0 d
3 Y2 B; ^5 I, l
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.43.tar.gz
: \# v$ p: Q* i+ _4 Xtar xvzf pcre-8.43.tar.gz5 s- d& x9 X  Q  x1 Y! y

8 x6 ^, F8 ]6 bwget https://github.com/yaoweibin/ngx_http_substitutions_filter_module/archive/master.zip -O ngx_http_substitutions_filter.zip5 Z- r" g' x4 M
unzip ngx_http_substitutions_filter.zip: s# r* Y3 i5 O9 G( e, H

# E1 r8 J! s, ocd nginx-1.15.9
& R1 k0 V9 G& W1 H
2 Y" L: w2 @; g5 W% O5 ]配置文件# V: Q) ^+ j& c- x
8 F6 e8 I# A8 x5 d

2 G2 L; @4 r! N
[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
0 x  A, {, \% Z: R0 b/ d# j1 j
编译 make
. p% r5 q& t: z  z% N- m8 @安装 make install
: J9 _; H) e1 ^; \7 h5 L# q' ]. K5 ?7 [
其它的启动配置文件找度娘。
/ l3 L: q: _2 c4 B! r
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-6-7 04:16 , Processed in 0.075273 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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