clickhouse部署
mkdir -p /home/data/clickhouse/data
mkdir -p /home/data/clickhouse/conf
mkdir -p /home/data/clickhouse/log
mkdir -p /home/data/clickhouse/client-conf
chmod -R 777 /home/data/clickhouse/
docker run --rm -d --name=clickhouse --ulimit nofile=262144:262144 -p 8123:8123 -p 9009:9009 -p 9090:9000 clickhouse:21.8.13.6
docker cp clickhouse:/etc/clickhouse-server/config.xml /home/data/clickhouse/conf/config.xml
docker cp clickhouse:/etc/clickhouse-server/users.xml /home/data/clickhouse/conf/users.xml
docker cp clickhouse:/etc/clickhouse-server/users.xml /home/data/clickhouse/client-conf/config.xml
docker rm -f clickhouse
docker run -dit --name=clickhouse -p 8123:8123 -p 9009:9009 -p 9090:9000 --ulimit nofile=262144:262144 -v /home/data/clickhouse/data:/var/lib/clickhouse:rw -v /home/data/clickhouse/conf/config.xml:/etc/clickhouse-server/config.xml -v /home/data/clickhouse/conf/users.xml:/etc/clickhouse-server/users.xml -v /home/data/clickhouse/log:/var/log/clickhouse-server:rw -v /home/data/clickhouse/client-conf/config.xml:/etc/clickhouse-client/config.xml clickhouse:21.8.13.6
//记得修改clickhouse时间和密码
标签:xml,部署,config,conf,home,docker,data,clickhouse From: https://www.cnblogs.com/hejj-bk/p/18670418