【发布时间】:2021-04-05 06:43:12
【问题描述】:
我的本地网络中有一个 clickhouse 服务器正在运行。我可以通过同一网络中其他机器上的 192.168.0.96:9000 访问它。 但是,在我转发了端口 9000,并尝试使用(我的 IP)xxx.xxx.xxx.xxx:9000 访问本地网络之外,我得到了 ERR_CONNECTION_TIMED_OUT。我无法弄清楚这个问题。
我使用的版本是:20.12.4.5,和 我已经更改了 etc/clickhouse-server/config.xml:
<!-- <listen_host>::</listen_host> -->
<!-- Same for hosts with disabled ipv6: -->
<listen_host>0.0.0.0</listen_host>
并且服务器没有任何防火墙。
【问题讨论】:
-
问题不在 CH。尝试使用
nc调试您的转发,nc -l someport允许监听端口。 -
@DennyCrane 我尝试将其他端口如 5432 转发到 9000 和 8006 到 9000,它们都工作正常。
-
你能显示
curl xxx.xxx.xxx.xxx:9000的输出吗?你从哪里得到错误 ERR_CONNECTION_TIMED_OUT ? -
@DennyCrane 我在 Chrome 中输入地址时收到了 ERR_CONNECTION_TIMED_OUT。
curl 101.228.191.118:9000。curl: (7) Failed to connect to 101.228.191.118 port 9000: Operation timed out -
问题不在 CH。 CH 不能丢弃数据包并产生这种行为
标签: database clickhouse