2020-03-13 19:35:03 +00:00
|
|
|
{% highlight "bash" %}
|
|
|
|
export LATEST_VERSION=$(curl https://api.github.com/repos/ClickHouse/ClickHouse/tags | \
|
|
|
|
grep -Eo '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' | head -n 1)
|
2020-03-15 18:19:43 +00:00
|
|
|
curl -O https://repo.clickhouse.tech/tgz/clickhouse-common-static-$LATEST_VERSION.tgz
|
|
|
|
curl -O https://repo.clickhouse.tech/tgz/clickhouse-common-static-dbg-$LATEST_VERSION.tgz
|
|
|
|
curl -O https://repo.clickhouse.tech/tgz/clickhouse-server-$LATEST_VERSION.tgz
|
|
|
|
curl -O https://repo.clickhouse.tech/tgz/clickhouse-client-$LATEST_VERSION.tgz
|
2020-03-13 19:35:03 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
{% endhighlight %}
|