找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 9313|回复: 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
  ^! N8 H5 e6 I! {7 {0 f7 w2 X下载需要组件- W4 @: ~, c$ S7 k* _& p
wget http://nginx.org/download/nginx-1.15.9.tar.gz  l# ^1 d& L2 U7 {0 K  v
tar xvzf nginx-1.15.9.tar.gz
1 E& R! V3 F! }0 S  X! ]8 R# ^$ d* N
wget https://www.openssl.org/source/openssl-1.1.1b.tar.gz
% I3 U2 z" b$ K% ttar xvzf openssl-1.1.1b.tar.gz+ K  W* W2 ?. o* k

: Q8 n0 a9 Q3 N, s8 n# ]wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.43.tar.gz
) I$ ~/ J1 p% ]tar xvzf pcre-8.43.tar.gz
! T3 L. d/ ~) i" ~- s
7 P* k7 T0 k7 _( u) c  `0 ~wget https://github.com/yaoweibin/ngx_http_substitutions_filter_module/archive/master.zip -O ngx_http_substitutions_filter.zip
; w+ F" n9 R/ y% y4 _6 Z( i+ |* Munzip ngx_http_substitutions_filter.zip
) Z" p9 O& ~! r: z% v3 U
3 S! H8 X' h! P9 D+ @cd nginx-1.15.9
" q, ?& Q) Z* L" r0 ?4 J/ i% r: M" q: M* A, A7 s+ e% k/ }
配置文件
. c4 v6 n# ]' c; f$ s8 ?& L; C% Z$ e: W9 A9 X# B% \2 i

5 `0 k6 {7 A* k+ J
[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
1 K0 R- Q: Q  F) T, \( Q' H5 O+ t
编译 make/ V6 D  V7 f0 A' {0 J2 W
安装 make install
& P, o7 e3 ?. V
5 C' S' S  K6 E3 @其它的启动配置文件找度娘。. S1 U* l* J. a) z7 ^! ]
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-7-1 04:12 , Processed in 0.055374 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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