我想在 EC2 实例上运行 Elastic Search,并在全局范围内访问它。
但是在将其配置更改为
cluster.name: elasticsearch
network.host: XX.XXX.XX.XX
(关联的弹性 IP)
它抛出一个错误:
Caused by: java.net.BindException: Cannot assign requested address: bind
我想它无法绑定(bind)到公共(public) IP 地址
那么
我尝试将其绑定(bind)到
0.0.0.0
如 Elasticsearch cannot start when bind to public ip address 中所述(我必须添加
discovery.seed_hosts: []
,因为我运行的是单个实例)。它运行,但在本地运行。
我找不到任何全局访问它的方法。
帮助!
我还在入站规则或 EC2 中添加了端口 9200
PS:请在评论中提及任何其他必需的信息。
最佳答案
我 必须在 Windows 防火墙中添加入站规则 用于端口范围 9200-9300
步骤 :
New Rule
9200-9300
Allow if secured
)。 希望这可以帮助任何面临类似问题的人。
关于amazon-web-services - 无法将公共(public)弹性 IP 绑定(bind)到运行 Windows Server 2016 的 EC2 上的 Elasticsearch ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58449537/