clickhouse安装与启动

安装参考:
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

clickhouse安装与启动_第1张图片

客户端连接
clickhouse安装与启动_第2张图片

重启:

sudo systemctl restart clickhouse-server

你可能感兴趣的:(Linux-Unix)