Last active
October 16, 2020 09:31
-
-
Save EtherDream/90d65a22c1120fa107edbf649edcf06a to your computer and use it in GitHub Desktop.
Compile OpenResty
This file contains 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
OPENRESTY_VER=1.17.8.2 | |
ZLIB_VER=1.2.11 | |
PCRE_VER=8.44 | |
OPENSSL_VER=1.1.1h | |
DIR=$(mktemp -d) | |
echo $DIR | |
cd $DIR | |
git clone https://github.com/google/ngx_brotli.git --recurse-submodules | |
# export NGX_BROTLI_STATIC_MODULE_ONLY=1 | |
curl -O https://zlib.net/zlib-$ZLIB_VER.tar.gz | |
curl -O https://ftp.pcre.org/pub/pcre/pcre-$PCRE_VER.tar.gz | |
curl -O https://www.openssl.org/source/openssl-$OPENSSL_VER.tar.gz | |
curl -O https://openresty.org/download/openresty-$OPENRESTY_VER.tar.gz | |
tar zxf pcre-* | |
tar zxf zlib-* | |
tar zxf openssl-* | |
tar zxf openresty-* | |
cd openresty-$OPENRESTY_VER | |
export PATH=$PATH:/sbin | |
./configure \ | |
--with-http_v2_module \ | |
--with-http_ssl_module \ | |
--with-http_sub_module \ | |
--with-http_gzip_static_module \ | |
--with-openssl=../openssl-$OPENSSL_VER \ | |
--with-zlib=../zlib-$ZLIB_VER \ | |
--with-pcre=../pcre-$PCRE_VER \ | |
--with-pcre-jit \ | |
--add-module=../ngx_brotli | |
make | |
make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment