Write custom directory title here
ClickHouse installation package address
http://repo.yandex.ru/clickhouse/
Because we use the tgz package for installation, we enter the tgz directory and select the stable directory.
There are four packages to download,
clickhouse-client
clickhouse-server
clickhouse-common-static
clickhouse-common-static-dbg
select the suffix tgz to download.
I choose the latest version 22.2.2.1 here, so the download address is
http://repo.yandex.ru/clickhouse/tgz/stable/clickhouse-client-22.2.2.1.tgz
http://repo.yandex.ru/clickhouse/tgz/stable/clickhouse-common-static-22.2.2.1.tgz
http://repo.yandex.ru/clickhouse/tgz/stable/clickhouse-common-static-dbg-22.2.2.1.tgz
http://repo.yandex.ru/clickhouse/tgz/stable/clickhouse-server-22.2.2.1.tgz
Install
After downloading the four packages, upload them to the server and decompress them.
tar -zxvf clickhouse-common-static-22.2.2.1.tgz
tar -zxvf clickhouse-common-static-dbg-22.2.2.1.tgz
tar -zxvf clickhouse-server-22.2.2.1.tgz
tar -zxvf clickhouse-client-22.2.2.1.tgz
Get four directories, each with install\doinst.sh installation script.
Execute the installation script
./clickhouse-common-static-22.2.2.1/install/doinst.sh
./clickhouse-common-static-dbg-22.2.2.1/install/doinst.sh
./clickhouse-client-22.2.2.1/install/doinst.sh
./clickhouse-server-22.2.2.1/install/doinst.sh
Not necessarily in order, but it should be noted that the first three scripts have no output, and the server installation script will require several parameters to be input.
The first is the password of the default user, and the second is whether to allow remote connections. Here I choose y to allow remote connections.
deploy
After the installation is complete, the script prompts the command to start the ClickHouse service and the command to connect to ClickHouse
clickhouse start
clickhouse-client --password
After entering the password, clickhouse is connected.
So far clickhouse installation and deployment is complete.