找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 9194|回复: 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$ a* c7 Q) @0 m) J8 F
下载需要组件) `' r- ?: o; Q1 }3 }+ J( H
wget http://nginx.org/download/nginx-1.15.9.tar.gz
6 f. F% w! A: S- e3 g6 J8 o/ [2 qtar xvzf nginx-1.15.9.tar.gz. r) B' m- A% H! o$ e
- K9 M" A7 L% R2 |  ^/ {) [2 p
wget https://www.openssl.org/source/openssl-1.1.1b.tar.gz
# w0 h6 C+ h# wtar xvzf openssl-1.1.1b.tar.gz2 q: U7 c; ?1 R' c: O2 K

' k% {, h; A6 kwget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.43.tar.gz
* A  E3 y- \8 q9 Q9 L7 t8 B0 }tar xvzf pcre-8.43.tar.gz3 B6 o: b/ V% n7 o

4 _+ L! F$ z# ^6 ]# R2 F  e+ kwget https://github.com/yaoweibin/ngx_http_substitutions_filter_module/archive/master.zip -O ngx_http_substitutions_filter.zip: p% p8 V6 `1 Y  ^- g/ c1 k1 R: q" M* g
unzip ngx_http_substitutions_filter.zip$ Y' G) Q9 u; o% d) W' L
% y) C  a6 [- L) \7 e/ l
cd nginx-1.15.9
7 A5 D6 O$ \9 w1 ]/ E7 D9 S7 I- C5 t) Y+ |$ @3 `/ b: M1 c( r
配置文件4 s8 H! E+ j& g9 S2 s* T

7 z" Y. t/ Q1 W6 D% E/ q1 i
) U+ ?5 X' G" b; \) y8 d1 U8 Z
[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
9 c6 y8 Q. \6 t9 R" E: ~  |/ Z
编译 make5 u8 V  a, n) q, J# C
安装 make install) O1 j3 h& O6 f' J" H& o# y; |

( M9 t0 U* E3 n其它的启动配置文件找度娘。
9 V* \9 x; T% _- [( l; m
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-6-16 07:14 , Processed in 0.075692 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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