docker安装clickhouse ╰半夏微凉° 2022-09-12 11:47 136阅读 0赞 # 安装过程 1. 拉取镜像且运行 docker run --restart=always -d --name clickhouse-server --ulimit nofile=262144:262144 -p 8123:8123 -p 9000:9000 -p 9009:9009 yandex/clickhouse-server 2. 修改密码 2.1. 获取加密后的密码 (以密码为:123456为例) echo -n 123456 | openssl dgst -sha256 2.2. 进入容器 docker exec -it clickhouse-server /bin/bash 2.3. 安装vim工具 apt-get update apt-get install -y vim 2.4. 修改users.xml vim /etc/clickhouse-server/users.xml <password>123456</password> <password_sha256_hex>8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92</password_sha256_hex> 2.5. 退出,重启服务 exit docker restart clickhouse-server 2.6. 测试密码 clickhouse-client --password 2.7. 查看数据库 show databases;
还没有评论,来说两句吧...