docker 安装 clickhouse

简单记录一下

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


docker cp 87361095c566:/etc/clickhouse-server /usr/local/docker/clickhouse/conf
docker cp 87361095c566:/var/lib/clickhouse /usr/local/docker/clickhouse/data
docker cp 87361095c566:/var/log/clickhouse-server /usr/local/docker/clickhouse/log

## 修改 conf/user.xml 中默认的密码
## 修改 conf/config.xml 中 <listen_host>::</listen_host>

docker run -d --name clickhouse-server --ulimit nofile=262144:262144 -v /usr/local/docker/clickhouse/conf:/etc/clickhouse-server -v /usr/local/docker/clickhouse/data:/var/lib/clickhouse -v /usr/local/docker/clickhouse/log:/var/log/clickhouse-server -p 8123:8123 yandex/clickhouse-server:21.4

## 测试是否运行
echo ‘select timezone(), version() FORMAT TabSeparatedWithNamesAndTypes‘ | curl ‘http://default:123456@localhost:8123/‘ -d @-

docker 安装 clickhouse

上一篇:React Native从入门到实战--高性能列表组件SectionList详解、react-navigation、矢量图标


下一篇:Soul API 网关源码解析 02