- 安装
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/clickhouse
.repo
sudo
yum
install
clickhouse-server clickhouse-client
- 启动
ClickHouse client version 21.6.3.14 (official build).
Connecting to localhost:9000 as user default.
Code: 210. DB::NetException: Connection refused (localhost:9000)
- 解决
参考:https://github.com/ClickHouse/ClickHouse/issues/14861
It seems you're using systemd based distro.
Use only systemctl command
sudo systemctl start clickhouse-server
sudo systemctl stop clickhouse-server
sudo systemctl status clickhouse-serverAnd don't use
service clickhouse-server
or/etc/init.d/clickhouse-service