找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 9507|回复: 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, o. \/ {. L: \" K' b
下载需要组件
" k% }' E" x8 t# e: L: J3 nwget http://nginx.org/download/nginx-1.15.9.tar.gz
+ T7 m( X1 R. V0 S1 O2 F* [tar xvzf nginx-1.15.9.tar.gz# }& ~( [4 b# a6 S5 U' E$ H

  f' e8 Z, }5 ]* ^0 mwget https://www.openssl.org/source/openssl-1.1.1b.tar.gz
. ]# d; g' Z2 p& E- ]0 etar xvzf openssl-1.1.1b.tar.gz6 w% Z; h9 \. ?" \3 e6 N

! y  a6 _* n0 p5 M5 {9 iwget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.43.tar.gz, Z/ S& k) h& U! H
tar xvzf pcre-8.43.tar.gz
7 W) K, g0 M8 u4 n- F& a7 h& v
/ V4 p$ N, W3 q, pwget https://github.com/yaoweibin/ngx_http_substitutions_filter_module/archive/master.zip -O ngx_http_substitutions_filter.zip4 n  ~* k; z  U; r" i* P
unzip ngx_http_substitutions_filter.zip. K, m  q: _& ~% i* N
2 M" p# A& C) k4 N
cd nginx-1.15.9
& J# Y  D  X. U% Z. m. b5 f  l, s* c1 {2 t# `
配置文件
6 f, y7 u" C; \( e
& W' U5 y! ?# }2 R. F& r: \; J+ o: \4 y1 E* [3 y
[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

( R0 @; J' D9 Q3 N9 k6 E. E. R编译 make; e! r; E9 D  {! e
安装 make install: T" G$ w; [3 R. J& n
  H' x' `, t0 Y* ^) J: \. b2 C9 I6 J
其它的启动配置文件找度娘。
$ W* J1 J) k5 R/ @
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-7-26 17:41 , Processed in 0.064491 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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