单节点安装
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_clickhouseclickhouse-common-static.x86_64 20.5.4.40-1.el7
@Altinity_clickhouse
4)安装clickhouse的服务端和客户端
yum install -y clickhouse-server clickhouse-client
5)启动服务端
service clickhouse-server start
6)启动交互式客户端
clickhouse-clientlinux :)show databases ;--展示所有的数据库
create database linux;
select currentDatabase() ; -- 查看当前正在使用的数据库