mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-06 15:42:39 +00:00
b028288350
* Switch to httpS://repo.clickhouse.tech for deb packages * deduplicate install instructions
20 lines
1012 B
Bash
20 lines
1012 B
Bash
export LATEST_VERSION=$(curl -s https://repo.clickhouse.tech/tgz/stable/ | \
|
|
grep -Eo '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' | sort -V -r | head -n 1)
|
|
curl -O https://repo.clickhouse.tech/tgz/stable/clickhouse-common-static-$LATEST_VERSION.tgz
|
|
curl -O https://repo.clickhouse.tech/tgz/stable/clickhouse-common-static-dbg-$LATEST_VERSION.tgz
|
|
curl -O https://repo.clickhouse.tech/tgz/stable/clickhouse-server-$LATEST_VERSION.tgz
|
|
curl -O https://repo.clickhouse.tech/tgz/stable/clickhouse-client-$LATEST_VERSION.tgz
|
|
|
|
tar -xzvf clickhouse-common-static-$LATEST_VERSION.tgz
|
|
sudo clickhouse-common-static-$LATEST_VERSION/install/doinst.sh
|
|
|
|
tar -xzvf clickhouse-common-static-dbg-$LATEST_VERSION.tgz
|
|
sudo clickhouse-common-static-dbg-$LATEST_VERSION/install/doinst.sh
|
|
|
|
tar -xzvf clickhouse-server-$LATEST_VERSION.tgz
|
|
sudo clickhouse-server-$LATEST_VERSION/install/doinst.sh
|
|
sudo /etc/init.d/clickhouse-server start
|
|
|
|
tar -xzvf clickhouse-client-$LATEST_VERSION.tgz
|
|
sudo clickhouse-client-$LATEST_VERSION/install/doinst.sh
|