mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-10 02:20:48 +00:00
3ce47c5e48
* Suggest downloading packages via CDN * Update rpm.html * Update tgz.html * Update install.md * Update tutorial.md * Update install.md * Update install.md * Update tutorial.md * Update deb.html
22 lines
1.0 KiB
HTML
22 lines
1.0 KiB
HTML
{% 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)
|
|
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
|
|
|
|
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 %}
|