Can't access my elasticsearch through public IP in EC2 instance

后端 未结 1 415
旧巷少年郎
旧巷少年郎 2021-01-20 20:51

I have deployed elasticsearch(7.3 version) service on my EC2 instance.

  • After installing when I did curl localhost:9200it gave me correct response
相关标签:
1条回答
  • 2021-01-20 21:00

    So the solution was simply to modify the following settings in elasticsearch.yml:

    network.host: 0.0.0.0
    discovery.type: single-node
    

    Note: The second setting is only necessary if you have a single node.

    0 讨论(0)
提交回复
热议问题