2

我按照 clickhouse 网站上的说明安装了 clickhouse,但是当我运行 clickhouse-client 时,连接被拒绝:

root@guest:~# clickhouse-client
ClickHouse client version 1.1.54198.
Connecting to localhost:9000.
Code: 210. DB::NetException: Connection refused: (localhost:9000, 127.0.0.1)

服务器似乎正在运行:

root@guest:~# systemctl status clickhouse-server.service 
● clickhouse-server.service - LSB: Yandex clickhouse-server daemon
   Loaded: loaded (/etc/init.d/clickhouse-server; bad; vendor preset: enabled)
   Active: active (exited) since Tue 2017-04-04 01:41:48 EDT; 28min ago
     Docs: man:systemd-sysv-generator(8)

更新:看来 clickhouse 服务器找不到它需要的一切:

root@guest:~# /etc/init.d/clickhouse-server condstart
Start clickhouse-server service: Include not found: clickhouse_remote_servers
Include not found: clickhouse_compression
Path to data directory in /etc/clickhouse-server/config.xml: /var/lib/clickhouse/
No directory, logging in with HOME=/
DONE

Ubuntu 16.04 软件包有问题吗?

4

1 回答 1

6

结果默认配置尝试绑定到 ipv6 地址 [::1]:

<Error> Application: Net Exception: Cannot assign requested address: [::1]:8123

/etc/clickhouse-server/config.xml从修复中删除相关行。

于 2017-04-04T19:33:26.207 回答