找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 10011|回复: 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
. E( |5 c- e' I: W: K' J5 o下载需要组件
  M, Z8 [% b6 B. Ywget http://nginx.org/download/nginx-1.15.9.tar.gz- K# N8 @9 ^& m6 H+ I5 p
tar xvzf nginx-1.15.9.tar.gz
* w9 g8 ?/ k% l* ?4 a4 P+ M. m* C+ t7 N7 l* F1 L
wget https://www.openssl.org/source/openssl-1.1.1b.tar.gz
: }5 K7 ^3 e0 |3 M( r  d( b' a1 k  Dtar xvzf openssl-1.1.1b.tar.gz
* \) K  k" k/ F& b
& s- B/ J9 {) f( c) iwget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.43.tar.gz
( p- k( l& q& |7 d, Rtar xvzf pcre-8.43.tar.gz
! i: z" S- F+ ~8 r3 s$ @2 q2 k+ ?  h
5 h6 v6 r4 |# l% o5 f6 F& _wget https://github.com/yaoweibin/ngx_http_substitutions_filter_module/archive/master.zip -O ngx_http_substitutions_filter.zip/ q. N# x9 m7 o8 D7 Y8 x* L( J# k: {
unzip ngx_http_substitutions_filter.zip
3 {5 [' p8 i8 q: C8 F* {
% U* t. _+ T& Mcd nginx-1.15.9
! t6 ~2 l/ b$ c' C+ q  {0 j5 e* S+ ]7 L
配置文件
0 Y0 n8 l( @# k- i$ W7 s9 B3 V
$ M0 c! j0 D7 B3 t8 Y' d3 Q5 R9 }* B4 \& q6 F3 C& Z
[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

/ d' {0 A" P7 s& c编译 make9 I; {( s, N9 V7 F2 @' J
安装 make install" k, [6 r! w. L- G5 t2 h3 N: h7 b
; E- H9 i# l  n' `; [
其它的启动配置文件找度娘。
. p" p# Y* d/ K3 f& c; T- A
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-10-5 01:45 , Processed in 0.072397 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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