Installation. Standalone
There are several ways to install Clickhouse and most of them quite simple. For Production only repository and containers are supported.
Install from Repository.
Deps and Repo
#Check if needed CPU features are supported.
grep -q sse4_2 /proc/cpuinfo && echo "SSE 4.2 supported" || echo "SSE 4.2 not supported";
#Install deps
sudo apt-get install -y apt-transport-https ca-certificates dirmngr;
#Install keys for Repo
GNUPGHOME=$(mktemp -d);
sudo GNUPGHOME="$GNUPGHOME" gpg --no-default-keyring --keyring /usr/share/keyrings/clickhouse-keyring.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 8919F6BD2B48D754;
sudo rm -rf "$GNUPGHOME";
sudo chmod +r /usr/share/keyrings/clickhouse-keyring.gpg;
#Add repo
echo "deb [signed-by=/usr/share/keyrings/clickhouse-keyring.gpg] https://packages.clickhouse.com/deb stable main" | sudo tee \
/etc/apt/sources.list.d/clickhouse.list
Installation
#Install from repo (23.8.9.54 is LTS 1-year-support, look into GitHub)
sudo apt-get update && sudo apt-get install -y clickhouse-common-static=23.8.9.54 clickhouse-server=23.8.9.54 clickhouse-client=23.8.9.54
#It will ask for passwordCheck installation
Now let's create test tables
Insert data from S3
You now can see uploaded data.

Install with Docker.
The easy way is just to start Docker Compose\Swarm. Be sure Docker is installed.
Paste this
Now start and test

You can login into container and upload test data
Last updated
Was this helpful?