找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 9311|回复: 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
' [! `4 ?) a% U. |- Z4 l4 Q& {下载需要组件; B3 X6 @  L8 b" U( d# l
wget http://nginx.org/download/nginx-1.15.9.tar.gz
4 P$ b! H" t# P& h" G5 v+ wtar xvzf nginx-1.15.9.tar.gz7 B6 I; }) X3 \3 b5 p

( l9 J7 t- E, ]1 U* a% twget https://www.openssl.org/source/openssl-1.1.1b.tar.gz) c3 q" D$ O3 K# e9 Z% Y
tar xvzf openssl-1.1.1b.tar.gz) k/ |- h$ X' ^- C$ r( T1 R

2 V: P" y  v) U$ A1 u1 _wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.43.tar.gz
" P8 Y* f, T  v3 y8 c- ^; D% ]/ S! M! ntar xvzf pcre-8.43.tar.gz% h9 S4 r7 g% y: d: y+ t: X8 L$ o. J

: y! U2 W1 Y* O2 {& R% Ewget https://github.com/yaoweibin/ngx_http_substitutions_filter_module/archive/master.zip -O ngx_http_substitutions_filter.zip
2 C, P4 |) p% Y7 m' ]6 j, }unzip ngx_http_substitutions_filter.zip) P& e5 f( @/ w

- Q& P, n6 A' J# M1 mcd nginx-1.15.95 U" T4 h/ ~! m9 B

: W; C% t8 F3 n! G# `9 z配置文件. n# J& C% v& g8 Z
) {- K7 R  ^! J
! A5 d0 S" D! }; g5 K# g, \2 h& W; 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

& q; S4 u2 ]. p. x编译 make
' m2 |5 ~0 s8 \7 \) Q, f$ ?8 F4 y3 b安装 make install
% ]2 ]& _# w; J4 S+ X/ e1 Q- P
+ s" N: S" v2 A2 x# }$ i% J3 H2 O其它的启动配置文件找度娘。- |7 i' H( \$ R+ T/ d1 D0 G
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-7-1 03:01 , Processed in 0.093990 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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