亚马逊ec2没有通过端口8088上的http响应

时间:2014-02-20 11:19:54

标签: amazon-ec2

我有一个正在侦听端口8088的java进程

netstat -anltp | grep "LISTEN"
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      -
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      -
tcp6       0      0 127.0.0.1:9991          :::*                    LISTEN      11189/java
tcp6       0      0 :::22                   :::*                    LISTEN      -
tcp6       0      0 :::8088                 :::*                    LISTEN      11189/java

我可以在本地获得wget的响应:

 wget http://54.xxx.xxx.13:8088/admin/login
--2014-02-20 11:18:53--  http://54.xxx.xxx.13:8088/admin/login
Connecting to 54.xxx.xxx.13:8088... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1991 (1.9K) [text/html]
Saving to: ‘login.5’

100%[============================================================================================================>] 1,991       --.-K/s   in 0s

2014-02-20 11:18:53 (138 MB/s) - ‘login.5’ saved [1991/1991]

但是当我在浏览器中尝试时它没有响应。为什么不?我在aws控制台中设置了正确的安全性,端口80和端口8080正在工作。

1 个答案:

答案 0 :(得分:1)

听起来像防火墙可能会阻止实例的入站流量。修改实例安全组以允许入站tcp / 8088流量。

可以找到有关如何修改安全组的详细信息here