找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 7299|回复: 0

nginx-1.17.7-ngx_http_substitutions_filter(关键字替换)编译安装

[复制链接]
发表于 2020-1-17 14:11:05 | 显示全部楼层 |阅读模式
下载需要组件1 }1 W; W8 p% I
wget http://nginx.org/download/nginx-1.17.7.tar.gz
( X8 k. J/ J7 d: Star xvzf nginx-1.17.7.tar.gz
  G) A/ O* u- B
+ F4 ~: o1 _' {6 bwget https://www.openssl.org/source/openssl-1.1.1d.tar.gz1 z/ U1 Y7 V+ ^9 y! b" ^
tar xvzf openssl-1.1.1d.tar.gz6 a* r. j! I' p/ F" C+ t

" z* n" _) }: E! Nwget https://ftp.pcre.org/pub/pcre/pcre-8.43.tar.gz
) `! r" [0 ]! W2 v) Ftar xvzf pcre-8.43.tar.gz
9 k5 p2 h2 V7 N9 J. M8 z+ z1 s+ `; o/ T0 i/ z' s
wget https://github.com/yaoweibin/ngx ... /archive/master.zip -O ngx_http_substitutions_filter.zip0 z: }! W8 p: M& Y! B$ `
unzip ngx_http_substitutions_filter.zip
3 ]- G! k: |" i9 a
- J( x1 A8 B# h6 S7 B8 Wcd nginx-1.17.7- P$ L8 y3 Q5 S3 G9 |4 [$ a5 ]

& U- Y' P  L* a" I1 h4 [# c$ Z! O# y  H" w1 w' [. B! F8 b. Y
配置文件
- }* V: N5 B9 _) i$ E, R: o6 H
[Shell] 纯文本查看 复制代码
./configure \
--user=www \
--group=www \
--prefix=/www/webserver/nginx-1.17.7 \
--sbin-path=/www/webserver/nginx-1.17.7/sbin/nginx \
--pid-path=/www/webserver/nginx-1.17.7/logs/nginx.pid \
--conf-path=/www/webserver/nginx-1.17.7/conf/nginx.conf \
--error-log-path=/www/webserver/nginx-1.17.7/logs/error.log \
--http-log-path=/www/webserver/nginx-1.17.7/logs/access.log \
--http-client-body-temp-path=/www/webserver/nginx-1.17.7/temp/client \
--http-proxy-temp-path=/www/webserver/nginx-1.17.7/temp/proxy \
--http-fastcgi-temp-path=/www/webserver/nginx-1.17.7/temp/fcgi \
--http-scgi-temp-path=/www/webserver/nginx-1.17.7/temp/scgi \
--http-uwsgi-temp-path=/www/webserver/nginx-1.17.7/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 \
--with-http_geoip_module \
--add-module=/root/ngx_http_substitutions_filter_module-master \
--with-openssl=/root/openssl-1.1.1d

8 O1 c0 C+ ?$ b7 C  D编译 make
  A( b/ ]5 v3 ^: M& S" d安装 make install5 M" p5 ?$ X3 M
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-11-4 21:06 , Processed in 0.073724 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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