构建多功能nginx镜像相关文件下载

主要考虑nginx集成filter功能及VeryNginx功能,具体涉及的文件通过shell脚本进行下载,具体设计如下:

#!/usr/bin/env bash

# 可采用源码的方式进行安装

# pcre 2-10.32

cd ./tools/

from_src=true

if ["$from_src" == "true" ];then

    wget https://ftp.pcre.org/pub/pcre/pcre2-10.32.tar.gz

tar zxvf pcre2-10.32.tar.gz

# zlib 1.2.11

    wget https://nchc.dl.sourceforge.net/project/libpng/zlib/1.2.11/zlib-1.2.11.tar.gz

tar zxvf zlib-1.2.11.tar.gz

# openssl 1.0.2p

    wget http://distfiles.macports.org/openssl/openssl-1.0.2p.tar.gz

tar zxvf openssl-1.0.2p.tar.gz

else

    yum -y install pcre-devel openssl-devel zlib-devel

fi

wget https://github.com/simplresty/ngx_devel_kit/archive/v0.3.1rc1.tar.gz

wget https://github.com/openresty/lua-nginx-module/archive/v0.10.14.tar.gz

wget http://nginx.org/download/nginx-1.15.9.tar.gz

wget http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz

wget http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.mmdb.gz

git clone https://github.com/cuber/ngx_http_google_filter_module

git clone https://github.com/yaoweibin/ngx_http_substitutions_filter_module

wget https://ftp.pcre.org/pub/pcre/pcre2-10.32.tar.gz

wget https://nchc.dl.sourceforge.net/project/libpng/zlib/1.2.11/zlib-1.2.11.tar.gz

wget http://distfiles.macports.org/openssl/openssl-1.0.2p.tar.gz

wget http://luajit.org/download/LuaJIT-2.1.0-beta3.tar.gz

git clone https://github.com/alexazhou/VeryNginx.git

wget https://github.com/maxmind/libmaxminddb/releases/download/1.3.2/libmaxminddb-1.3.2.tar.gz

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容