1 Star 0 Fork 2

dbother/Deploy_ClickHouse

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
download_soft.sh 2.08 KB
一键复制 编辑 原始数据 按行查看 历史
dibrother 提交于 2024-04-09 11:41 . 添加下载soft软件脚本
#!/bin/bash
# 判断系统类型
if [ ! -z "$(command -v yum)" ]; then
#echo "This system uses yum (likely Red Hat/CentOS family)."
SYSTEM_TYPE='Redhat'
elif [ ! -z "$(command -v apt-get)" ] || [ ! -z "$(command -v apt)" ]; then
#echo "This system uses apt (likely Debian/Ubuntu family)."
SYSTEM_TYPE='Debian_Ubuntu'
else
#echo "Could not determine which package manager to use."
SYSTEM_TYPE='Unknow'
fi
download_zookeeper(){
echo "------------------------ zookeeper downloading... ----------------------------"
curl -O https://dlcdn.apache.org/zookeeper/zookeeper-3.8.4/apache-zookeeper-3.8.4-bin.tar.gz
}
download_clickhouse(){
if [ $SYSTEM_TYPE = "Redhat" ];then
echo "------------------------ clickhouse-client downloading... ----------------------------"
curl -O https://packages.clickhouse.com/rpm/stable/clickhouse-client-23.8.12.13.x86_64.rpm
echo "------------------------ clickhouse-common-static downloading... ----------------------------"
curl -O https://packages.clickhouse.com/rpm/stable/clickhouse-common-static-23.8.12.13.x86_64.rpm
echo "------------------------ clickhouse-server downloading... ----------------------------"
curl -O https://packages.clickhouse.com/rpm/stable/clickhouse-server-23.8.12.13.x86_64.rpm
elif [ $SYSTEM_TYPE = "Debian_Ubuntu" ];then
echo "------------------------ clickhouse-client downloading... ----------------------------"
curl -O https://packages.clickhouse.com/deb/pool/main/c/clickhouse/clickhouse-client_23.8.12.13_amd64.deb
echo "------------------------ clickhouse-common-static downloading... ----------------------------"
curl -O https://packages.clickhouse.com/deb/pool/main/c/clickhouse/clickhouse-common-static_23.8.12.13_amd64.deb
echo "------------------------ clickhouse-server downloading... ----------------------------"
curl -O https://packages.clickhouse.com/deb/pool/main/c/clickhouse/clickhouse-server_23.8.12.13_amd64.deb
else
echo "UnKonw System!"
exit 1
fi
}
do_download(){
cd soft
download_zookeeper
download_clickhouse
}
do_download
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dbother/deploy_clickhouse.git
git@gitee.com:dbother/deploy_clickhouse.git
dbother
deploy_clickhouse
Deploy_ClickHouse
master

搜索帮助