找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 9269|回复: 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
5 |' C4 G2 a# D% w! b$ `/ I下载需要组件- i2 ?# v, f+ ]: p4 O5 b5 ?9 Z
wget http://nginx.org/download/nginx-1.15.9.tar.gz
7 p' r1 [! k( a+ O  Y9 Jtar xvzf nginx-1.15.9.tar.gz$ t% C+ x7 g) n0 e; j7 A
1 S3 k; r  p6 o/ P' M
wget https://www.openssl.org/source/openssl-1.1.1b.tar.gz
9 ~* ~) ?" d* E* n  htar xvzf openssl-1.1.1b.tar.gz
9 X$ Z  Y6 K& j( z
& l' r- f9 Q! k. M& j0 c# n- _wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.43.tar.gz
) Z, f6 @  W# H8 o3 B( N; \0 ^6 Rtar xvzf pcre-8.43.tar.gz$ R! O. z9 p5 P* a

5 i7 b% U! W+ O' l  B, ?( C$ Lwget https://github.com/yaoweibin/ngx_http_substitutions_filter_module/archive/master.zip -O ngx_http_substitutions_filter.zip4 l. C& C" A: l6 r' j" I
unzip ngx_http_substitutions_filter.zip
) y( s  E  J1 L$ g
6 b+ M' h: g- U6 xcd nginx-1.15.9
  ?8 P* R6 D  Z4 w4 l/ N4 y% I$ E
配置文件
* b' H* M' @  v/ R3 N6 G- Z" y! i- h0 ~

, V$ {% x9 v* s8 K# ]% \1 I
[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

/ D3 d0 |! V' q) q编译 make
+ m: y1 `" k$ Y- V安装 make install  s' U6 E& o  C; o0 A' T3 z# |: n, K
# F, z" s8 j( s0 r
其它的启动配置文件找度娘。
. ?- O5 j; d8 \. w
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-6-25 09:54 , Processed in 0.053930 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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