找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 8674|回复: 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
/ a1 m" ]& R3 t下载需要组件: A' D. s# K# ~7 ^- w! N' F# q- Y
wget http://nginx.org/download/nginx-1.15.9.tar.gz; a/ W* M2 \# y7 [, j
tar xvzf nginx-1.15.9.tar.gz, h4 L- j1 O1 q/ m' l3 ~7 ~

& c( w$ u1 V; L" g: D0 }wget https://www.openssl.org/source/openssl-1.1.1b.tar.gz
  e% T6 C* j$ t# V, s5 B( v) Ptar xvzf openssl-1.1.1b.tar.gz
  V3 z$ h) ]- p7 ?& K
% Z2 I: E# D6 p+ g" bwget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.43.tar.gz7 e0 k$ ?# q' f# j9 K2 c
tar xvzf pcre-8.43.tar.gz
, g( p, S9 x& K) ^
6 ~% D3 X/ h" g9 m4 [# M- @wget https://github.com/yaoweibin/ngx_http_substitutions_filter_module/archive/master.zip -O ngx_http_substitutions_filter.zip" H6 n" e6 @4 Z0 T' Y
unzip ngx_http_substitutions_filter.zip
; ~( Z4 B+ m7 x. K: u0 S7 P; O! l& S' c$ U. @$ A
cd nginx-1.15.9% A% u# x1 F; ?0 l1 q$ e

4 O7 c1 a7 B: @) z9 }1 J配置文件
) b  p/ U9 r8 k' J5 y
, _0 F/ Q0 Q1 x& K& O" A9 D9 d; ~9 ?7 W' `
[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

$ ]9 ^. ]$ @" ]% u9 d编译 make
3 u. r% _! J) V1 p; Q! A3 e安装 make install9 X, M+ ]# e7 S: C' F- n

. ~- r5 x& W3 p其它的启动配置文件找度娘。
9 R/ p9 B' B( E- K5 [) o1 E+ y1 ^& p  ^
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-4-12 22:37 , Processed in 0.050815 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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