aws:无法连接到端口x:连接被拒绝

ncecgwcz  于 2021-06-10  发布在  ElasticSearch
关注(0)|答案(0)|浏览(224)

我连接到一个aws服务器,我想在那里托管一个elasticsearch应用程序。为了让它工作,我需要打开一组端口。在我的aws安全组中,我打开了我认为必要的那些。为了检查这是否有效,我尝试了以下方法:
当通过ssh连接到aws时,我输入了 curl localhost:3002 ,输出:

<html><body>You are being <a href="http://localhost:3002/login">redirected</a>.</body></html>

当我在本地机器上尝试同样的方法时,即。 curl http://ec2-xx.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

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题