Amazon web services 无法连接到端口8080上的EC2 windows实例

Amazon web services 无法连接到端口8080上的EC2 windows实例,amazon-web-services,amazon-ec2,Amazon Web Services,Amazon Ec2,我已经在AWS上创建了一个免费的tier EC2实例。我已通过安全组打开到此实例的入站连接。在EC2实例上,我能够访问wildfly服务器,并看到它在端口127.0.0.1:8080上运行/侦听。当我在EC2实例上运行netstat-ab命令时,我可以看到服务监听上面的IP地址/端口号组合。你能帮我从自己的机器连接到这个实例吗?请让我知道,如果我应该提供任何额外的信息,将有助于解决问题。提前谢谢 我打开了以下入站端口- 80 tcp 0.0.0.0/0 8080 tcp 0.0.

我已经在AWS上创建了一个免费的tier 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

您的服务侦听127.0.0.1,它不是您的网络接口。将配置为侦听您的实例专用ip(10.x…)或0.0.0.0(全部)

您的服务侦听127.0.0.1,它不是您的网络接口。将配置为侦听您的实例专用ip(10.x…)或0.0.0.0(全部)

在本文的帮助下解决了此问题:

我就快到了,但不得不改变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>

在这篇文章的帮助下解决了这个问题:

我就快到了,但不得不改变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>


您是否检查了Windows防火墙?您使用哪个地址进行远程连接?公共dns名称?我已允许端口8080上的所有入站流量通过EC2实例上的windows防火墙。我正在使用以下地址:xxx.us-west-2.compute.amazonaws.com:8080连接您是否检查了Windows防火墙?您使用哪个地址进行远程连接?公共dns名称?我已允许端口8080上的所有入站流量通过EC2实例上的windows防火墙。我正在使用下面的地址:xxx.us-west-2.compute.amazonaws.com:8080连接。您能告诉我如何实现这一点吗?我将standalone.xml更改如下:我将/etc/hosts文件更改为:::1 xxx.us-west-2.compute.amazonaws.com您能告诉我如何实现这一点吗?我将standalone.xml更改如下:我将/etc/hosts文件更改为:::1 xxx.us-west-2.compute.amazonaws.com