官网
https://clickhouse.tech/docs/zh/
centos安装教程
sudo yum install yum-utils
sudo rpm --import https://repo.clickhouse.tech/CLICKHOUSE-KEY.GPG
sudo yum-config-manager --add-repo https://repo.clickhouse.tech/rpm/stable/x86_64
sudo yum install clickhouse-server clickhouse-client
docker 安装
mkdir $HOME/some_clickhouse_database
docker run -d --name some-clickhouse-server --ulimit nofile=262144:262144 --volume=$HOME/some_clickhouse_database:/var/lib/clickhouse yandex/clickhouse-server
docker run -it --rm --link some-clickhouse-server:clickhouse-server yandex/clickhouse-client --host clickhouse-server
docker-compose 安装
version: '3'
services:
ch-server:
image: yandex/clickhouse-server
container_name: clickhouse-server
privileged: true
ulimits:
nofile:
soft: 262144
hard: 262144
ports:
- 8123:8123
- 9001:9000
volumes:
chserver:
driver: local
chclient:
driver: local
networks:
net-clickhouse:
external: false