This commit is contained in:
dami
2026-04-03 13:17:45 +08:00
parent 86d3dd2c88
commit e1fe3d959a
6 changed files with 32 additions and 8 deletions
+6 -2
View File
@@ -140,9 +140,13 @@ Install_openresty()
if [ ! -d ${openrestyDir}/zstd-nginx-module ];then
cd ${openrestyDir} && wget -O $openrestyDir/zstd-nginx-module.tar.gz https://github.com/tokers/zstd-nginx-module/archive/refs/heads/master.tar.gz
cd ${openrestyDir} && tar -zxvf zstd-nginx-module.tar.gz
OPTIONS="${OPTIONS} --add-module=${openrestyDir}/zstd-nginx-module-master"
pkg-config --exists --print-errors libzstd
if [ "$?" == "0" ];then
OPTIONS="${OPTIONS} --add-module=${openrestyDir}/zstd-nginx-module-master"
fi
fi
# --with-openssl=$serverPath/source/lib/openssl-1.0.2q
cd ${openrestyDir}/openresty-${VERSION} && ./configure \
--prefix=$serverPath/openresty \
+5 -1
View File
@@ -141,7 +141,11 @@ Install_openresty()
if [ ! -d ${openrestyDir}/zstd-nginx-module ];then
cd ${openrestyDir} && wget -O $openrestyDir/zstd-nginx-module.tar.gz https://github.com/tokers/zstd-nginx-module/archive/refs/heads/master.tar.gz
cd ${openrestyDir} && tar -zxvf zstd-nginx-module.tar.gz
OPTIONS="${OPTIONS} --add-module=${openrestyDir}/zstd-nginx-module-master"
pkg-config --exists --print-errors libzstd
if [ "$?" == "0" ];then
OPTIONS="${OPTIONS} --add-module=${openrestyDir}/zstd-nginx-module-master"
fi
fi
+5 -1
View File
@@ -140,7 +140,11 @@ Install_openresty()
if [ ! -d ${openrestyDir}/zstd-nginx-module ];then
cd ${openrestyDir} && wget -O $openrestyDir/zstd-nginx-module.tar.gz https://github.com/tokers/zstd-nginx-module/archive/refs/heads/master.tar.gz
cd ${openrestyDir} && tar -zxvf zstd-nginx-module.tar.gz
OPTIONS="${OPTIONS} --add-module=${openrestyDir}/zstd-nginx-module-master"
pkg-config --exists --print-errors libzstd
if [ "$?" == "0" ];then
OPTIONS="${OPTIONS} --add-module=${openrestyDir}/zstd-nginx-module-master"
fi
fi
# --with-openssl=$serverPath/source/lib/openssl-1.0.2q
+5 -1
View File
@@ -156,7 +156,11 @@ Install_openresty()
if [ ! -d ${openrestyDir}/zstd-nginx-module ];then
cd ${openrestyDir} && wget -O $openrestyDir/zstd-nginx-module.tar.gz https://github.com/tokers/zstd-nginx-module/archive/refs/heads/master.tar.gz
cd ${openrestyDir} && tar -zxvf zstd-nginx-module.tar.gz
OPTIONS="${OPTIONS} --add-module=${openrestyDir}/zstd-nginx-module-master"
pkg-config --exists --print-errors libzstd
if [ "$?" == "0" ];then
OPTIONS="${OPTIONS} --add-module=${openrestyDir}/zstd-nginx-module-master"
fi
fi
cd ${openrestyDir}/openresty-${VERSION} && ./configure \
+6 -2
View File
@@ -147,9 +147,13 @@ Install_openresty()
if [ ! -d ${openrestyDir}/zstd-nginx-module ];then
cd ${openrestyDir} && wget -O $openrestyDir/zstd-nginx-module.tar.gz https://github.com/tokers/zstd-nginx-module/archive/refs/heads/master.tar.gz
cd ${openrestyDir} && tar -zxvf zstd-nginx-module.tar.gz
OPTIONS="${OPTIONS} --add-module=${openrestyDir}/zstd-nginx-module-master"
pkg-config --exists --print-errors libzstd
if [ "$?" == "0" ];then
OPTIONS="${OPTIONS} --add-module=${openrestyDir}/zstd-nginx-module-master"
fi
fi
cd ${openrestyDir}/openresty-${VERSION} && ./configure \
--prefix=$serverPath/openresty \
+5 -1
View File
@@ -148,7 +148,11 @@ Install_openresty()
if [ ! -d ${openrestyDir}/zstd-nginx-module ];then
cd ${openrestyDir} && wget -O $openrestyDir/zstd-nginx-module.tar.gz https://github.com/tokers/zstd-nginx-module/archive/refs/heads/master.tar.gz
cd ${openrestyDir} && tar -zxvf zstd-nginx-module.tar.gz
OPTIONS="${OPTIONS} --add-module=${openrestyDir}/zstd-nginx-module-master"
pkg-config --exists --print-errors libzstd
if [ "$?" == "0" ];then
OPTIONS="${OPTIONS} --add-module=${openrestyDir}/zstd-nginx-module-master"
fi
fi