ClickHouse(一)-docker安装

docker安装ClickHouse

docker run -d --name ch-server --ulimit nofile=262144:262144 -p 8123:8123 -p 9000:9000 -p 9009:9009 yandex/clickhouse-server

安装成功

d5339c7dc24f        yandex/clickhouse-server   "/entrypoint.sh"    32 hours ago        Up 4 seconds        8123/tcp, 9000/tcp, 9009/tcp   ch-server

进入容器

docker exec -it  ch-server /bin/bash

链接

clickhouse-client

命令测试

show databases;
SHOW DATABASES

┌─name────┐
│ default │
│ system  │
└─────────┘

2 rows in set. Elapsed: 0.003 sec.

安装完成

你可能感兴趣的:(Clickhouse)