- 检查系统是否支持clickhouse安装
grep -q sse4_2 /proc/cpuinfo && echo “SSE 4.2 supported” || echo “SSE 4.2 not supported
“SSE 4.2 supported”
- 安装
# 自动安装
# 添加官方存储库
yum install yum-utils
rpm --import https://repo.clickhouse.tech/CLICKHOUSE-KEY.GPG
yum-config-manager --add-repo https://repo.clickhouse.tech/rpm/stable/x86_64
# 安装
yum install clickhouse-server clickhouse-client
- 服务管理
systemctl start clickhouse-server
systemctl stop clickhouse-server
systemctl status clickhouse-server
- 允许远程连接
# 关闭防火墙
systemctl stop firewalld
vim /etc/clickhouse-server/config.xml
将
<listen_host>::</listen_host>
注释取消
完成之后重启systemctl start clickhouse-server