Clickhouse单机模式
- clickhouse-tgz-stable安装包下载_开源镜像站-阿里云 (aliyun.com)
- 将镜像包扔到/opt/so下
- 解压:tar -zxvf clickhouse-common-static-21.9.6.24.tgz
- cd clickhouse-common-static-21.9.6.24/ install
- 调用脚本:./doinst.sh
- 安装:clickhouse-common-static-dbg-21.9.6.24.tgz:
tar -zxvf clickhouse-common-static-dbg-21.9.6.24.tgz
- ./clickhouse-common-static-dbg-21.9.6.24/insta11/doinst.sh
#调用脚本
- 安装server包:tar -zxvf clickhouse-server-21.9.6.24.tgz
- 调用脚本:./clickhouse-server-21.9.6.24/install/doinst.sh
并输入密码:123456
- 安装client: tar -zxvf clickhouse-client-21.9.6.24.tgz
- 调用脚本:./clickhouse-client-21.9.6.24/install/doinst.sh
- 查看常用命令:clickhouse --help
- 启动:clickhouse start
- 打开客户端:clickhouse-client
- show databases; #查看库