【问题标题】:Connection refused after installing clickhouse on Ubuntu 16.04在 Ubuntu 16.04 上安装 clickhouse 后连接被拒绝
【发布时间】:2017-08-29 04:50:00
【问题描述】:

我按照 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 软件包有问题吗?

【问题讨论】:

    标签: clickhouse


    【解决方案1】:

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

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

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

    【讨论】:

    • 那一行到底是什么?
    • 啊!我明白了,必须将 ::1 更改为 ::
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-12-25
    • 2018-04-22
    • 2017-11-15
    • 1970-01-01
    • 2015-08-04
    • 2019-06-05
    • 1970-01-01
    相关资源
    最近更新 更多