ClickHouse单机安装部署

ClickHouse支持运行在主流64位CPU架构(X86、AArch和 PowerPC)的Linux操作系统之上,可以通过源码编译、预编译压缩包、Docker镜像和RPM等多种方法进行安装。

下面是离线RPM的安装方法(yum方式安装):

1、安装curl工具

yum install -y curl

2、添加clickhouse的yum镜像

curl -s https://packagecloud.io/install/repositories/altinity/clickhouse/script.rpm.sh | sudo bash

3、检查镜像情况

[root@doit04 yum.repos.d]# yum list | grep clickhouse                        

clickhouse-client.x86_64                    20.5.4.40-1.el7            @Altinity_clickhouse

clickhouse-common-static.x86_64             20.5.4.40-1.el7            @Altinity_clickhouse

4、安装clickhouse的服务端和客户端

yum install -y clickhouse-server

yum -y install clickhouse-client

5、启动服务daunt

service clickhouse-server start

6、启动交互式客户端

clickhouse-client -m

[root@ck1 /]# clickhouse-client  -m

ClickHouse client version 20.8.3.18.

Connecting to localhost:9000 as user default.

Connected to ClickHouse server version 20.8.3 revision 54438.

ck1 :)

 

上一篇:Flink+ClickHouse 玩转企业级实时大数据开发


下一篇:clickhouse--表引擎