docker下一键安装clickhouse服务端,命令行客户端,tabix界面
1.安装clickhouse服务端:
docker run -d --name some-clickhouse-server --ulimit nofile=262144:262144 -p 9000:9000 -p 8123:8123 --volume=/data/clickhouse:/var/lib/clickhouse yandex/clickhouse-server
这个/data/clickhouse是我自己建的目录,挂载/var/lib/clickhouse
2.运行clickhouse命令行客户端,注意--rm 退出的话容器会被销毁
docker run -it --rm --link some-clickhouse-server:clickhouse-server yandex/clickhouse-client --host clickhouse-server
3. 运行tabix,然后从http://ip:8111访问即可
docker run -d -p 8111:80 spoonest/clickhouse-tabix-web-client
填上url http://ip:8123,就可以访问了