9

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?

Amit
  • 30,756
  • 6
  • 57
  • 88
troonie-pham
  • 93
  • 2
  • 5
  • 2
    Try looking at your logs for additional information on errors and try restarting your elastic search server. – Ayush Mar 13 '17 at 03:29
  • Please provide the logs of your installation : https://www.elastic.co/guide/en/elasticsearch/reference/1.7/_installation.html – Mickael May 17 '17 at 07:52
  • 1
    Thank you all for your supports. I fixed this problem I forgot to assign permissions on /var/lib/elasticsearch/elasticsearch – troonie-pham May 29 '17 at 04:27
  • ^ Thanks. I did `sudo chmod u+w /var/lib/elasticsearch` and then my `sudo curl -X GET "localhost:9200"` oddly started working. – velkoon Feb 06 '19 at 23:30

0 Answers0