如何通过外网连接内网kafka程序

ifnoelse 发布于 2015/02/03 10:58
阅读 3K+
收藏 0

内网连接没问题,但是外网连接不上,服务器消息

[2015-02-03 10:37:12,673] INFO Closing socket connection to /124.205.229.62. (kafka.network.Processor)
[2015-02-03 10:37:15,489] INFO Closing socket connection to /124.205.229.62. (kafka.network.Processor)
[2015-02-03 10:37:15,612] INFO Closing socket connection to /124.205.229.62. (kafka.network.Processor)
[2015-02-03 10:37:15,739] INFO Closing socket connection to /124.205.229.62. (kafka.network.Processor)
[2015-02-03 10:37:15,858] INFO Closing socket connection to /124.205.229.62. (kafka.network.Processor)

加载中
0
hejindan88V
hejindan88V
需要在路由器上做转发。。。
0
a
asynct

server.properties配置advertised.host.name和advertised.port,具体可以看文件内注解


# Hostname the broker will bind to. If not set, the server will bind to all interfaces
#host.name=localhost

# Hostname the broker will advertise to producers and consumers. If not set, it uses the
# value for "host.name" if configured.  Otherwise, it will use the value returned from
# java.net.InetAddress.getCanonicalHostName().
#advertised.host.name=<hostname routable by clients>







返回顶部
顶部