根据hazelcast的文章,http://docs.hazelcast.org/docs/2.4/manual/html/ch12s02.html在hazelcast.xml中添加了另一台PC的主机名,这是在SERVICEMIX_HOME/等中生成的,如下所示。
<tcp-ip enabled="true">
<hostname>FABLRDT061:5702</hostname>
<interface>127.0.0.1</interface>
</tcp-ip>如果我启动servicemix,它不能连接到我指定的主机名,因为下面的连接被拒绝。另一台pc的日志信息如下
[172.16.25.64]:5702 [cellar] 5702 is accepting socket connection from /172.16.25.71:60770
[172.16.25.64]:5702 [cellar] 5702 accepted socket connection from /172.16.25.71:60770
[172.16.25.64]:5702 [cellar] Wrong bind request from Address[127.0.0.1]:5701! This node is not requested endpoint: Address[FABLRDT061]:5702
[172.16.25.64]:5702 [cellar] Connection [/172.16.25.71:60770] lost. Reason: Explicit close可能的原因是什么?有人能帮帮我吗??
发布于 2015-06-05 19:50:11
Hazelcast是可用于配置节点发现的配置文件。
尽管教程解释了以下几点,但根据我的实际操作,我理解
多播,我们不需要更改任何内容,直到我们写出不同的多播组。
tcp-ip标记下创建一个名为hostname的标记,其中应提及另一个系统的主机名或in地址。在interface标记中,在其他节点中指定当前系统的ipaddress.发布于 2015-06-15 12:32:17
我不会使用主机名,而是用ip地址代替它。
https://stackoverflow.com/questions/30610725
复制相似问题