Created
December 24, 2017 06:44
-
-
Save JLHwung/fb6f3d70d7907b8c11c7994f3ee5f67f to your computer and use it in GitHub Desktop.
compile nginx + brotli
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
openssl_version=1.1.0g | |
nginx_version=1.12.2 | |
zlib_version=1.2.11 | |
pcre_version=8.41 | |
wget -O- https://ftp.pcre.org/pub/pcre/pcre-$pcre_version.tar.bz2 | tar -xjvf - | |
wget -O- https://zlib.net/zlib-$zlib_version.tar.gz | tar -xzvf - | |
wget -O- https://nginx.org/download/nginx-$nginx_version.tar.gz | tar -xzvf - | |
wget -O- https://www.openssl.org/source/openssl-$openssl_version.tar.gz | tar -xzvf - | |
git clone --recursive https://github.com/google/ngx_brotli | |
cd nginx-$nginx_version | |
./configure --prefix=/usr/local/easyops/nginx --with-http_ssl_module --with-pcre --with-http_stub_status_module --with-stream --with-openssl=/root/build-bot/openssl-$openssl_version/ --with-pcre=/root/build-bot/pcre-$pcre_version/ --with-http_v2_module --with-cc=/usr/bin/gcc --with-zlib=/root/build-bot/zlib-$zlib_version --add-module=/root/build-bot/ngx_brotli | |
make |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment