找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 8587|回复: 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( c( t& L5 m& Y" Q. n
下载需要组件+ D  X8 w: {( N: w& _& b
wget http://nginx.org/download/nginx-1.15.9.tar.gz
( b! i8 i. r( ^& g  \/ H) ^3 Ltar xvzf nginx-1.15.9.tar.gz
6 A, A  L5 l3 S" z
7 l. x. W5 Z/ f7 I6 o5 l# ewget https://www.openssl.org/source/openssl-1.1.1b.tar.gz! f3 v# ?7 M( O
tar xvzf openssl-1.1.1b.tar.gz
4 g/ p% b6 c, O0 t
/ E; }3 ], B: Kwget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.43.tar.gz
0 m0 `( V- m4 u' ]8 t& O& j6 W. ytar xvzf pcre-8.43.tar.gz2 ^/ q* C% R( i/ n4 r+ n( d

' l  y) c  [; s8 r9 Z2 xwget https://github.com/yaoweibin/ngx_http_substitutions_filter_module/archive/master.zip -O ngx_http_substitutions_filter.zip
; j; u4 l( n; Y$ N. S% H8 u$ hunzip ngx_http_substitutions_filter.zip
& l2 @5 c5 w, q' \* R) q4 t: q" S# j' \" ?! q$ r
cd nginx-1.15.9
/ ^: F  P2 [/ P9 E9 {8 ~: ]# f8 Q. u
配置文件
7 L5 N2 I4 t! V5 P4 \9 q; b8 y8 d6 a

" p" Z% y% J. {
[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
" K  g4 u& G2 l$ Y/ M5 y* X  V" e. V
编译 make; Y' T3 A3 w& z. w& t# n
安装 make install
, m; o$ {$ ^( N7 K
) {4 Q! j* y/ R0 p其它的启动配置文件找度娘。
7 k" B) T/ i6 [: H7 ?
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-4-4 18:52 , Processed in 0.067730 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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