找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 8861|回复: 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 p5 D# a+ ]' W4 b$ q$ A0 O下载需要组件; j, T: l! K; w2 @0 T  f
wget http://nginx.org/download/nginx-1.15.9.tar.gz
) `/ {  f5 c( ~9 a+ R' `tar xvzf nginx-1.15.9.tar.gz9 H0 I3 b+ {, I2 A

) [2 [1 ^: [: \6 Vwget https://www.openssl.org/source/openssl-1.1.1b.tar.gz
+ i  q$ R0 Y+ M; Ftar xvzf openssl-1.1.1b.tar.gz1 v+ _' m! v& a( c2 d
5 E: s( U% J4 |" r) f
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.43.tar.gz
+ o7 m4 I; M2 r2 L: s4 Btar xvzf pcre-8.43.tar.gz
% T! I" t. P9 v3 R) `9 H4 S( X) G6 V: Q& d+ ^/ Q3 M  c1 X
wget https://github.com/yaoweibin/ngx_http_substitutions_filter_module/archive/master.zip -O ngx_http_substitutions_filter.zip
" R  z8 v( `" d# [! |+ Qunzip ngx_http_substitutions_filter.zip4 X% i% h$ z* w8 W, \- `! w: H8 U
% G: `- k, c) ]0 ~7 A8 P
cd nginx-1.15.97 `/ I1 B( H! Q3 a$ L

/ g4 Q8 K. n# G# G  p# m配置文件
* Q. g; O- X( F0 J9 N$ I, b% D  Y
% [. I8 m; C) }( k3 v- |% 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

! q( x+ S! J9 A" ^8 T  K  ?& t编译 make
- H8 A$ V0 b( M; o" j- C安装 make install
  L2 [$ r* O: S# n) j: r, W4 G5 d+ d
其它的启动配置文件找度娘。7 R6 f+ s4 R6 L! [  ?
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-5-7 00:37 , Processed in 0.067936 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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