ElasticSearch安装错误

编程入门 行业动态 更新时间:2024-10-26 22:19:02
本文介绍了ElasticSearch安装错误-curl:(7)无法连接到localhost:9200;拒绝连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试使用此教程

我完成了除教程第4步之外的所有操作。

I did everything except step 4 of the tutorial.

在步骤5中,当我运行此命令时:

In step 5, when I run this command:

curl -X GET 'localhost:9200'

我收到此错误:

curl: (7) Failed connect to localhost:9200; Connection refused

我尝试了两种方法来修复错误:

I have tried two different things to fix the error:

  • network.bind_host:0.0.0.0

  • network.bind_host: 0.0.0.0

    网络:主机:192.168.2.229

    network : host : 192.168.2.229

    但都没有解决问题。

    我应该怎么做才能测试Elasticsearch并解决此错误?

    What should I do to test Elasticsearch and solve this error?

    谢谢。

    推荐答案

    您只需在弹性搜索配置文件中取消注释以下行:

    You just have to uncomment these lines in your elastic-search configuration file:

    cluster.name: your_cluster_name node.name: "Your Node Name" network.bind_host: localhost network.publish_host: 0.0.0.0 network.host: 0.0.0.0
  • 更多推荐

    ElasticSearch安装错误

    本文发布于:2023-06-05 01:13:37,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/508821.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:错误   ElasticSearch

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!