找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 10239|回复: 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' ?. q# {! h- h
下载需要组件
4 O% T) @3 V# g; U/ Zwget http://nginx.org/download/nginx-1.15.9.tar.gz! ]$ P( r* ]: d* C! D7 Y% Y
tar xvzf nginx-1.15.9.tar.gz
% ^' R( {6 T; L  U: }" W2 G# W
" ^) R, Z; P9 _wget https://www.openssl.org/source/openssl-1.1.1b.tar.gz
3 g1 D# s) z3 u- C/ E# X  `tar xvzf openssl-1.1.1b.tar.gz, D* l  O5 w  Y$ f( X6 [" U) R
# H4 q+ A, g# y. V, N0 O
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.43.tar.gz) U7 q1 ^* |' C2 \
tar xvzf pcre-8.43.tar.gz
$ G' J0 @8 J9 p6 i! H
3 T4 @. _2 O- a+ t' G+ V, _( Owget https://github.com/yaoweibin/ngx_http_substitutions_filter_module/archive/master.zip -O ngx_http_substitutions_filter.zip
- ~- J) Q/ j  M" u, Xunzip ngx_http_substitutions_filter.zip$ ]) ]8 y6 |; }( |! {  I; Z
' c' l. S. @" ?" t) B% G2 \
cd nginx-1.15.9
0 [$ j! C6 i4 Q! X  l
% L! Y* B( G. |0 `3 `% c配置文件  b4 P+ w) K% O% q6 w0 Z1 ^

, \- E) R" U4 S2 K% n/ h  H
, u% p2 L4 K" l# x( d( x
[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
/ k2 N; k% n: R+ [5 c7 T
编译 make% F/ g% a" e2 B1 @8 N
安装 make install; E) K9 F1 Y7 k, @

$ d. M, u' E. Q2 m+ a其它的启动配置文件找度娘。. X4 x$ m: \  E& B, ?! y2 A6 N' {
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-11-17 12:29 , Processed in 0.073804 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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