Linux(centos7)安装ClickHouse

 

 

Clickhouse 仅支持Linux 且必须支持SSE4.2 指令集

grep -q sse4_2 /proc/cpuinfo && echo "SSE 4.2 supported" || echo "SSE 4.2 not supported"

显示

SSE 4.2 supported

表示可以安装

 

创建一个文件夹,下载安装包

wget --content-disposition https://packagecloud.io/Altinity/clickhouse/packages/el/7/clickhouse-server-common-20.3.12.112-1.el7.x86_64.rpm/download.rpm

wget --content-disposition https://packagecloud.io/Altinity/clickhouse/packages/el/7/clickhouse-server-20.3.12.112-1.el7.x86_64.rpm/download.rpm

wget --content-disposition https://packagecloud.io/Altinity/clickhouse/packages/el/7/clickhouse-common-static-20.3.12.112-1.el7.x86_64.rpm/download.rpm

wget --content-disposition https://packagecloud.io/Altinity/clickhouse/packages/el/7/clickhouse-client-20.3.12.112-1.el7.x86_64.rpm/download.rpm

 

执行

rpm -ivh ./*.rpm

 

设置外网访问

修改配置

vim /etc/clickhouse-server/config.xml

修改成

Linux(centos7)安装ClickHouse

 

 保存退出

 

 

启动服务

service clickhouse-server start

 

使用命令行客户端连接到服务

clickhouse-client

 

ClickHouse中文文档:https://clickhouse.tech/docs/zh/

上一篇:Clickhouse查看当前连接进程信息


下一篇:(转)ClickHouse概述