gpt4 book ai didi

ubuntu - 如何连接到安装在 Ubuntu 16 上的远程 ElasticSearch 服务器?

转载 作者:行者123 更新时间:2023-12-02 22:44:37 30 4
gpt4 key购买 nike

我在 AWS ubuntu 16 上安装了 elasticsearch(未作为服务安装)。我正在尝试将它连接到我的节点应用程序,但连接被拒绝。

curl -XGET '52.x.x.x:9200/_cat/indices?v&pretty' 也让我连接被拒绝。

我尝试过的事情:将 elasticsearch.yaml 中的网络主机更新为 0.0.0.0

最佳答案

首先看看你的防火墙是否开放了9200端口。

2nd 在 elasticsearch.yaml 中将 network.host 设置为 52.x.x.x 并保存。

第三次重启elasticsearch服务:service elasticsearch restart

第四次测试:curl -X GET ' http://52.x.x.x:9200 '

关于ubuntu - 如何连接到安装在 Ubuntu 16 上的远程 ElasticSearch 服务器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40457336/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com