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

truong donnie picture truong donnie · Mar 13, 2017 · Viewed 8.8k times · Source

I got this error: curl: (7) Failed to connect to localhost port 9200: Connection refused when i typed curl 'localhost:9200/_cat/indices?v'. I setup elasticsearch 1.7 and after that i edited file elasticsearch.yum:

  • cluster.name: elasticsearch
  • node.name: "Elasticsearch"
  • network.bind_host: localhost
  • network.publish_host: 0.0.0.0
  • network.host: 0.0.0.0

Can someone help me?

Answer