情况: Windows 10 主机需要与 Fedora 26 虚拟机通信。 Windows 10 是我在域中的主机,fedora 是从机。 VirtualBox 机器有 2 个适配器,一个是桥接的,另一个是内部网络适配器。
我主机的IPv4是:192.168.0.17 从机IP为:192.168.0.35
在 Windows 上运行域并访问 192.168.0.17:9990 时,我可以调出管理控制台。但是在 Fedora 上启动域时,它说连接超时,无法连接到 remote://192.168.0.17:9990 下图是我目前的情况。
我做了什么:我在 fedora 上禁用并停止了 firewalld,iptables 没有运行,因为我什至无法禁用它们。
我在 Windows 上启用了防火墙规则,允许我在主机和虚拟机之间进行通信。
我已经尝试从 Fedora ping 主机,一切正常。
我试过更改 <static-discovery/>
上的端口标签,但它不会 ping 9990,也不会 ping 9999。
我已经尝试通过主机上的 jboss-cli 连接到主机管理控制台,它正在运行。
我已经尝试通过从属机器上的 jboss-cli 连接到主机管理控制台,它正在工作。
我在 Windows 上的 host.xml 文件:
<management-interfaces>
<http-interface security-realm="ManagementRealm">
<http-upgrade enabled="true"/>
<socket interface="management" port="${jboss.management.http.port:9990}"/>
</http-interface>
</management-interfaces>
<domain-controller>
<local/>
</domain-controller>
<interfaces>
<interface name="management">
<inet-address value="${jboss.bind.address.management:192.168.0.17}"/>
</interface>
<interface name="public">
<inet-address value="${jboss.bind.address:192.168.0.17}"/>
</interface>
<interface name="unsecured">
<inet-address value="192.168.0.17"/>
</interface>
</interfaces>
我在slave上的host.xml文件:
<domain-controller>
<remote security-realm="ManagementRealm">
<discovery-options>
<static-discovery name="master-native" protocol="remote" host="192.168.0.17" port="9999" />
<static-discovery name="master-https" protocol="https-remoting" host="192.168.0.17" port="9993" security-realm="ManagementRealm"/>
<static-discovery name="master-http" protocol="http-remoting" host="192.168.0.17" port="9990" />
</discovery-options>
</remote>
</domain-controller>
<interfaces>
<interface name="management">
<inet-address value="${jboss.bind.address.management:10.211.55.2}"/>
</interface>
<interface name="public">
<inet-address value="${jboss.bind.address:10.211.55.2}"/>
</interface>
<interface name="unsecured">
<inet-address value="10.211.55.2" />
</interface>
</interfaces>
我已遵循本教程:https://docs.jboss.org/author/display/WFLY10/Clustering+and+Domain+Setup+Walkthrough
最佳答案
9990 端口用于 http-remoting
而不是 remote
协议(protocol)(端口 9999),更改它并重试。
关于jboss - Wildfly 14 域 - 连接超时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52392542/