情况: Windows 10主机需要与Fedora 26虚拟机通信。Windows 10在域上是我的主机,fedora是从服务器。VirtualBox机有两个适配器,一个是桥接的,另一个是内部网络适配器。
我的主机的IPv4是: 192.168.0.17从机IP是: 192.168.0.35
在Windows上运行域并访问192.168.0.17:9990时,我可以打开管理控制台。但是在Fedora上启动域时,它说连接超时,不能连接到remote://192.168.0.17:9990图片下面是我的现状。
我做了什么:我已经禁用并停止了在软呢帽上的,iptables没有运行,因为我甚至不能禁用它们。
我在windows上启用了防火墙规则,允许我在主机和vm之间进行通信。
我试过Fedora的,这一切都很好。我尝试过在<static-discovery/>标记上更改端口,但是它不会ping 9990,也不会改变9999。
我试着在主机上通过jboss连接主机管理控制台,它正在工作。
我尝试通过从机上的jboss连接到主机管理控制台,它正在工作。
我在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>我在从服务器上的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
下面的图片是启动domain.sh时Fedora上的输出,以及启动domain.bat时窗口上的输出

发布于 2018-09-23 14:35:14
9990端口用于http-remoting而不是remote协议(端口9999),请更改它,然后重试。
请参阅:域配置
https://stackoverflow.com/questions/52392542
复制相似问题