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

前端 未结 12 764
醉酒成梦
醉酒成梦 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 23:00

    In the remote machine where elasticsearch is installed just add the below two configurations in /etc/elasticsearch/elasticsearch.yml

    network.host: xx.xx.xx.xx #remote elastic machine's internal IP
    discovery.type: single-node
    

    Tested on elasticsearch 6.8.3 and AWS EC2 Linux AMI as remote machine

提交回复
热议问题