找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 8465|回复: 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
, A- o2 G. O, j3 k. M下载需要组件0 Q% c9 [7 d9 z. ~, l; _
wget http://nginx.org/download/nginx-1.15.9.tar.gz  _* _: X$ \7 r! M8 \
tar xvzf nginx-1.15.9.tar.gz
0 ~: l+ y1 o( C/ o2 L$ R, t  ]! c$ U* Q* w" z. M1 P3 C
wget https://www.openssl.org/source/openssl-1.1.1b.tar.gz- ]+ `) i3 p! W: z
tar xvzf openssl-1.1.1b.tar.gz
% d( e. d; n8 X6 C  y
2 E) v, K. W" [0 pwget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.43.tar.gz
- d7 _/ t0 b4 {1 ftar xvzf pcre-8.43.tar.gz/ F6 k. E  P3 Q9 ?1 o: t& g
% Q8 l) Q. U4 M+ s+ E
wget https://github.com/yaoweibin/ngx_http_substitutions_filter_module/archive/master.zip -O ngx_http_substitutions_filter.zip, @! W4 {/ [) k! L6 M- @# C
unzip ngx_http_substitutions_filter.zip1 E8 a' B* ^2 g3 E7 \6 i+ k
% g4 P5 d$ k/ W, z5 b5 |5 `
cd nginx-1.15.9
5 k/ {- o( O6 i# e7 Y5 d% e& e& [+ P  P# @& J0 n2 h1 n
配置文件8 ?" Q/ g9 V1 a' q" f7 P& @- ^0 t
0 g* w1 Q0 L: p3 S( L$ ^: N2 K
3 z) b2 I3 |1 f0 r4 b! p0 m
[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

4 P4 t5 p+ ~2 r6 N$ @编译 make
; q& |1 H$ t- _( s% w$ D0 l: i安装 make install
  \( N+ s8 O  u1 @# L( j7 n$ g5 [- q; F9 h6 S& a# s
其它的启动配置文件找度娘。/ I+ j3 I0 J' y) o) n
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-3-23 16:43 , Processed in 0.067101 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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