找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 7866|回复: 0

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

[复制链接]
发表于 2019-3-25 10:24:34 | 显示全部楼层 |阅读模式
话不多说,我的系统的centos6,参考帖子https://bbs.swdyz.com/forum.php?mod=viewthread&tid=418' s9 ^' d2 H4 @# ]! r+ @
下载需要组件
# ~9 w7 v( n5 j. D* C1 Twget http://nginx.org/download/nginx-1.15.9.tar.gz7 u1 e" Y4 |4 S  B
tar xvzf nginx-1.15.9.tar.gz
: ^2 k3 C) m9 ?) t( t" N$ k) h2 l* i6 A9 k. Y. \8 [/ I* a
wget https://www.openssl.org/source/openssl-1.1.1b.tar.gz
5 h- J4 y3 w( y$ i% d% m7 g$ r( vtar xvzf openssl-1.1.1b.tar.gz/ I# I. c8 B4 c- |3 Z3 B
, X* R& k& I& _# R8 ~6 t. w7 B
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.43.tar.gz' U8 c' b3 a. n9 N* C- x
tar xvzf pcre-8.43.tar.gz
  S2 B! ^; [" T6 |  ^! _
$ ~2 L5 t! X2 N6 i0 ~wget https://github.com/yaoweibin/ngx_http_substitutions_filter_module/archive/master.zip -O ngx_http_substitutions_filter.zip
" h4 }# j" O( ?" W; g  Uunzip ngx_http_substitutions_filter.zip" e# ^5 I& `' W! k1 \$ i$ b) }
; g4 _, b3 u  o1 t6 P  [5 ^# e7 m7 h
cd nginx-1.15.9
( [4 F5 c* w" O2 K9 W* D, ~
% R" g  `# S/ [! }- t1 f" ~7 _配置文件
# Q, C  n$ g5 i$ ^4 n
6 ?) D  d3 [5 q" r2 F8 i. }+ A; }% N( }1 }9 C: Y! x% ^3 U7 b1 k* K
[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
0 b' |( e7 ]$ Y% y
编译 make
" ~! n* e9 T9 A! L7 [6 D安装 make install9 v0 j; ?/ e3 f% @

- D) q* x3 C- E0 h+ x& V/ ^4 Y7 K其它的启动配置文件找度娘。6 o1 }/ _; a7 `/ n9 _
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-12-16 21:02 , Processed in 0.070847 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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