0

我是 aws 以及服务器及其配置的新手。

我有一个应用服务器,它基本上是一个 API 服务器。

当我使用本地主机测试运行时,我可以访问它。

curl --location --request GET 'http://localhost:5000/api/Supplier'

但不适用于我的机器公共或私有或弹性 IP。

curl --location --request GET 'http://xxx-xx-xx-xx:5000/api/Supplier' 

我收到以下错误

(7) Failed to connect to xxx-xx-xx-xx port 5000: Connection refused

这里还需要什么额外的东西吗?

4

0 回答 0