找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 6855|回复: 0

nginx-1.15.9-ngx_http_substitutions_filter(关键字替换)编译安装...

[复制链接]
发表于 2019-3-25 10:24:34 | 显示全部楼层 |阅读模式
话不多说,我的系统的centos6,参考帖子https://bbs.swdyz.com/forum.php?mod=viewthread&tid=418
6 Z! N. }  m0 Z下载需要组件
6 d+ @& ~8 W7 C" h9 v7 `wget http://nginx.org/download/nginx-1.15.9.tar.gz
( U; F* q+ n: X! j2 ptar xvzf nginx-1.15.9.tar.gz
2 o! O; _  {1 v3 e/ c( W9 T% I0 B7 p0 A( }: t( c8 c0 y* u# v* H! B
wget https://www.openssl.org/source/openssl-1.1.1b.tar.gz
. P, K' M/ Y, d, y# Etar xvzf openssl-1.1.1b.tar.gz
! p0 F$ @4 @( P% S! C# Z
, V# H3 Z& P# |wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.43.tar.gz9 A/ }' H$ A! E$ f0 s0 B' g# v6 [2 y) R
tar xvzf pcre-8.43.tar.gz# r! Z( ~% c- }
1 _! l. d% {& i8 O' g8 g
wget https://github.com/yaoweibin/ngx_http_substitutions_filter_module/archive/master.zip -O ngx_http_substitutions_filter.zip, f" D3 o% a5 j( R- m5 e# D5 J
unzip ngx_http_substitutions_filter.zip0 J) s( p3 S% W/ ^: f8 P" z

9 f3 A$ n1 ~- [/ U/ {, [- P. acd nginx-1.15.9$ n+ \: D( j3 g( j1 w2 p. C
( \8 h% l- ~4 d& c  n  z
配置文件* o4 R2 ^7 @! ^3 z2 ]9 \- ?
+ e* N) }0 |$ o1 j5 {! ?3 ~0 Q
- M, l0 l) b3 Z# r  e
[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
* [, D9 C4 f3 \$ L1 x+ q0 e
编译 make, y" B) w" y+ q1 a
安装 make install0 y( @6 }9 C2 A4 B* [& w

! |& a* c2 G/ ^2 X) N其它的启动配置文件找度娘。
3 q/ L3 b' `' F, B! \8 U# y/ S
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-6-7 13:25 , Processed in 0.093264 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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