java.net.ConnectException:JBAS012144:无法连接到远程://nnn.nn.nn.88:9999。连接超时

java.net.ConnectException: JBAS012144: Could not connect to remote://nnn.nn.nn.88:9999. The connection timed out

我正尝试在 jboss 域模式下 运行 实例。当我这样做时,我遇到了以下问题......

[Host Controller] 12:45:56,535 WARN [org.jboss.as.host.controller] (Controller Boot Thread) JBAS010900: Could not connect to remote domain controller at remote://nnn.nn.nn.88:9999 -- java.net.ConnectException: JBAS012144: Could not connect to remote://nnn.nn.nn.88:9999. The connection timed out

配置后我有 运行 两个 JBoss 实例处于域模式...

第一个 JBoss 实例->

./domain.sh -b nnn.nn.nn.88 -Djboss.bind.address.management=nnn.nn.nn.88

第二个 JBoss 实例 ->

./domain.sh -b nnn.nn.nn.89 -Djboss.domain.master.address=nnn.nn.nn.88 --host-config=host-slave.xml

nnn.nn.nn.88host.xml配置如下...

<domain-controller>
       <local/>
</domain-controller>

nnn.nn.nn.89主机-slave.xml配置如下...

<domain-controller>
      <remote host="${jboss.domain.master.address}" port="${jboss.domain.master.port:9999}" security-realm="ManagementRealm"/>
<domain-controller>

我可以从 89..... telnet 到主机 nnn.nn.nn.88 上的端口 9999,正如我通过删除 public 和管理端口的环回 IP 所配置的那样...... .虽然是不是<domain-controller><local/>的言外之意....

请帮我解决这个问题...JDK 版本是 JDK 7 Update 80.... EAP 6.3....

根据 redhat 的解决方案文章....

https://access.redhat.com/solutions/218053#

我运行按照我发布这个问题时的相同配置执行命令......我成功了......

DC-> ./domain.sh -b my-host-ip1 -bmanagement my-host-ip1

HC-> ./domain.sh -Djboss.domain.master.address=my-host-ip1 -b my-host-ip2 -bmanagement my-host-ip2

尽管这种配置方式是否为 DC 和 HC 提供了集群能力......我在同一篇解决方案文章中向 Redhat 提出了同样的问题......我希望答案一定是...... .

https://access.redhat.com/solutions/218053#comment-975683

在 HC host.xml 中,如果我们使用 --host-config=host-slave.xml,则特定的 xml 必须与 <domain-controller> 节点下的 DC 连接....

jboss.domain.master.address 应该是域控制器地址 nnn.nn.nn.88.....

<domain-controller>
      <remote host="${jboss.domain.master.address:nnn.nn.nn.88}" port="${jboss.domain.master.port:9999}" security-realm="ManagementRealm"/>
<domain-controller>