找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 10118|回复: 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
) `$ E3 k+ a  f) u0 m6 a7 L下载需要组件
: w/ L/ j! X% e2 t+ g) Swget http://nginx.org/download/nginx-1.15.9.tar.gz* O, w  T7 b, {$ |* ]5 S( p
tar xvzf nginx-1.15.9.tar.gz
. I( O: |' |& b
0 V; u6 k' e5 D6 R6 F  ]4 Rwget https://www.openssl.org/source/openssl-1.1.1b.tar.gz
: q+ m( R8 @: z/ {. c6 ]( X: |) rtar xvzf openssl-1.1.1b.tar.gz
+ `% `0 ^& k4 u& x# f0 l
! m% [. i. ]4 x; Nwget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.43.tar.gz
2 V7 M$ i* T$ }! V7 T# M9 atar xvzf pcre-8.43.tar.gz
9 s. e, K  r0 G( T/ m' z+ t& ?  m8 u1 D9 v, [
wget https://github.com/yaoweibin/ngx_http_substitutions_filter_module/archive/master.zip -O ngx_http_substitutions_filter.zip
( w# n  r8 D0 d# ?unzip ngx_http_substitutions_filter.zip' P) J  l5 Q; |) M1 R* @! A

5 r' x3 `) `: D5 ycd nginx-1.15.9
7 x1 {3 c! `( Z, h( C- |; b, i1 W! S& a( J. f
配置文件
: G+ n- \( ^) X9 [+ x
! z+ H7 Z# _$ e: j9 F$ F8 Y5 j
% F' c1 o, o) v% [  |, |% }
[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 L1 w8 ~% `$ ]编译 make
. E! i; b1 G" q9 B. k: m. s' w安装 make install5 b2 q. x; X6 Y% G& D& S3 l% ?4 _
# n* L) t3 b: i$ i0 G9 }7 V
其它的启动配置文件找度娘。" N& R+ i( W0 [* x7 h$ I/ p
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-10-24 16:56 , Processed in 0.048457 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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