找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 9867|回复: 0

nginx-1.17.7-ngx_http_substitutions_filter(关键字替换)编译安装

[复制链接]
发表于 2020-1-17 14:11:05 | 显示全部楼层 |阅读模式
下载需要组件# {0 \0 _6 {( N/ ]- g, E# [- f
wget http://nginx.org/download/nginx-1.17.7.tar.gz% [1 A, J1 ]+ ?) \' I: y
tar xvzf nginx-1.17.7.tar.gz
- i1 B7 _1 k  ~: ]$ V0 X- j8 B* J( Q
wget https://www.openssl.org/source/openssl-1.1.1d.tar.gz
" r2 b* f, R$ ltar xvzf openssl-1.1.1d.tar.gz
- W) }' N4 Z6 X; ~0 O; G+ C' m. W) D8 M# z, ]& r+ A& K; R
wget https://ftp.pcre.org/pub/pcre/pcre-8.43.tar.gz; Y5 m6 P$ L8 w, n
tar xvzf pcre-8.43.tar.gz
1 `2 E; b* L8 _6 B, I4 j3 a3 a: m* S$ R3 {8 j2 Y5 k1 Q# }
wget https://github.com/yaoweibin/ngx ... /archive/master.zip -O ngx_http_substitutions_filter.zip7 j, _0 h/ X- M0 f+ l
unzip ngx_http_substitutions_filter.zip
: I9 m: K7 e( ^. V  u7 |! `/ R7 R6 y
cd nginx-1.17.7
0 L6 \7 ^; g& k; s9 Z% t5 b
6 Q( u4 S7 h, \; p! Q! `
1 ]/ X6 [. \) o/ Z) C5 G配置文件, I7 T. \+ d$ U) v! l
[Shell] 纯文本查看 复制代码
./configure \
--user=www \
--group=www \
--prefix=/www/webserver/nginx-1.17.7 \
--sbin-path=/www/webserver/nginx-1.17.7/sbin/nginx \
--pid-path=/www/webserver/nginx-1.17.7/logs/nginx.pid \
--conf-path=/www/webserver/nginx-1.17.7/conf/nginx.conf \
--error-log-path=/www/webserver/nginx-1.17.7/logs/error.log \
--http-log-path=/www/webserver/nginx-1.17.7/logs/access.log \
--http-client-body-temp-path=/www/webserver/nginx-1.17.7/temp/client \
--http-proxy-temp-path=/www/webserver/nginx-1.17.7/temp/proxy \
--http-fastcgi-temp-path=/www/webserver/nginx-1.17.7/temp/fcgi \
--http-scgi-temp-path=/www/webserver/nginx-1.17.7/temp/scgi \
--http-uwsgi-temp-path=/www/webserver/nginx-1.17.7/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 \
--with-http_geoip_module \
--add-module=/root/ngx_http_substitutions_filter_module-master \
--with-openssl=/root/openssl-1.1.1d

) D. f' [' ^, g# L+ q6 ~# Z编译 make  r' t; y0 v" ]7 Y9 A
安装 make install& s2 b% E* V6 a- l5 a5 F
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-8-30 15:42 , Processed in 0.094321 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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