安装参考:
https://clickhouse.tech/docs/zh/getting-started/install/
sudo yum install yum-utils
sudo rpm --import https://repo.clickhouse.tech/CLICKHOUSE-KEY.GPG
sudo yum-config-manager --add-repo https://repo.clickhouse.tech/rpm/stable/x86_64
sudo yum install clickhouse-server clickhouse-client
修改一些权限:
sudo chown -R /var/log/clickhouse-server
sudo chown -R clickhouse:clickhouse /var/log/clickhouse-server
启动:
sudo -u clickhouse clickhouse-server --config-file=/etc/clickhouse-server/config.xml
客户端连接
重启:
sudo systemctl restart clickhouse-server