我已连接到要托管Elasticsearch应用程序的AWS服务器。为此,我需要打开一组端口。在我的AWS安全组中,我已将其打开,我认为有必要。为了检查是否可行,我尝试了以下操作:
当通过ssh连接到AWS时,我键入了curl localhost:3002
,它输出:
<html><body>You are being <a href="http://localhost:3002/login">redirected</a>.</body></html>
当我在本地计算机上尝试相同的操作时,即curl http://ec2-xxxxx.eu-central-1.compute.amazonaws.com:3002
,我收到:
curl: (7) Failed to connect to ec2-xxxxx.eu-central-1.compute.amazonaws.com port 3002: Connection refused
这是否意味着3002端口未打开,或者还有其他解释吗?
谢谢您的帮助!
编辑:
安全组中的配置如下:
传入:
80 TCP 0.0.0.0/0 launch-wizard-7
80 TCP ::/0 launch-wizard-7
22 TCP 0.0.0.0/0 launch-wizard-7
5000 TCP 0.0.0.0/0 launch-wizard-7
5000 TCP ::/0 launch-wizard-7
3002 TCP 0.0.0.0/0 launch-wizard-7
3002 TCP ::/0 launch-wizard-7
3000 TCP 0.0.0.0/0 launch-wizard-7
3000 TCP ::/0 launch-wizard-7
443 TCP 0.0.0.0/0 launch-wizard-7
443 TCP ::/0 launch-wizard-7
去向:
All All 0.0.0.0/0 launch-wizard-7