使用Deb安装包
// 添加证书
sudo apt-get install -y apt-transport-https ca-certificates dirmngr
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 8919F6BD2B48D754
// 更新软件源
echo "deb https://packages.clickhouse.com/deb stable main" | sudo tee \
/etc/apt/sources.list.d/clickhouse.list
sudo apt-get update
// 下载ck
sudo apt-get install -y clickhouse-server clickhouse-client
# Enter password for default user: 123456 // 我的密码设为123456,初始用户default
// 启动ck
sudo service clickhouse-server start
clickhouse-client # or "clickhouse-client --password"
使用离线包
https://packages.clickhouse.com/deb/pool/main/c/clickhouse-server/
sudo service clickhouse-server restart
使DBeaver管理ck