正在访问 JBOSS-AS 服务器进行远程连接

Accessing JBOSS-AS server for remote connections

我最近在 CentOS 6.7 服务器上安装了 JBoss AS 7。 jboss as 工作正常。为了测试,我部署了一个 .war 文件并对其进行了测试,效果很好!但现在我试图从我的台式电脑访问相同的应用程序,但它显示 ERR_ADDRESS_UNREACHABLE。我尝试了下面提到的这些解决方案,但它们对我没有用,我的错。

JBoss AS 7 not accepting remote connections Can't access JBoss AS 7 from remote machine

服务器有一个静态 IP 和有效的 DNS。我不明白为什么我无法远程访问我的应用程序。请随时让我提供更多需要的详细信息。

提前致谢!!!

您是否尝试过将 standalone.xml 更改为包含 0.0.0.0 而不是 127.0.0.1?搜索所有出现的 127.0.0.1 (localhost) 并将其替换为 0.0.0.0

例如-

<interfaces>
    <interface name="management">
        <inet-address value="${jboss.bind.address.management:0.0.0.0}"/>
    </interface>
    <interface name="public">
        <inet-address value="${jboss.bind.address:0.0.0.0}"/>
    </interface>
    <interface name="unsecure">
        <inet-address value="${jboss.bind.address.unsecure:0.0.0.0}"/>
    </interface>
</interfaces>

此更改以及选中 jboss 服务器的服务器行为部分的 "Listen on all interfaces to allow remote web connections" 复选框应该有效。

IPTABLES 防火墙阻止了这些端口。于是我让防火墙监听了9990和8080端口,终于解决了。