首页 文章

无法连接到端口8080上的EC2 Windows实例

提问于
浏览
0

我在AWS上创建了一个免费的层EC2实例 . 我已通过安全组打开了与此实例的入站连接 . 在EC2实例上,我能够访问wildfly服务器,并在端口127.0.0.1:8080上看到它正在运行/侦听 . 当我在EC2实例上运行netstat -ab命令时,我可以看到监听上述IP地址/端口号组合的服务 . 你能帮我从我自己的机器上连接这个实例吗?如果我应该提供有助于解决问题的任何其他信息,请告诉我 . 提前致谢 .

我在下面的入境港口开通了 -

80      tcp 0.0.0.0/0
8080    tcp 0.0.0.0/0
22      tcp 0.0.0.0/0
23      tcp 0.0.0.0/0
3389    tcp 0.0.0.0/0
443     tcp 0.0.0.0/0
-1     icmp 0.0.0.0/0

2 回答

  • 1

    您的服务侦听127.0.0.1,这不是您的网络接口 . 配置为侦听您的实例私有IP(10.x ..)或0.0.0.0(全部)

  • 2

    在这篇文章的帮助下解决了它:JBoss WildFly: Starts but can't connect?

    我几乎在那里,但不得不改变standalone.xml来听取@Michel建议的所有端口 . 下面是我的standalone.xml . 再次感谢大家的帮助 .

    早期的独立条目:

    <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.1}"/> 
     </interface> 
    </interfaces>
    

    上面改为:

    <interfaces>
            <interface name="management">
                <!-- Use the IPv4 wildcard address -->
            <any-address/>
            </interface>
            <interface name="public">
                <!-- Use the IPv4 wildcard address -->
            <any-address/>
            </interface>
            <interface name="unsecure">
                <!-- Use the IPv4 wildcard address -->
            <any-address/>
            </interface>
        </interfaces>
    

相关问题