How do I enable remote access/request in Elasticsearch 2.0?

前端 未结 12 707
醉酒成梦
醉酒成梦 2020-12-22 22:09

Starting from v2.0 Elasticsearch is listening only on localhost by default, but I\'d like to make request outside localhost.

For example, a request like this is allo

12条回答
  •  隐瞒了意图╮
    2020-12-22 22:57

    In config/elasticsearch.yml, put network.host: 0.0.0.0 as @arsent said. And also add Inbound Rule in firewall for your ElasticSearch port(9200 ByDefault).

    It worked in ElasticSearch version 2.3.0

提交回复
热议问题