Curl command : localhost connection refused


(Dilip Dwivedi) #1

I am trying to health check using curl commands in 2 diff ways .I am getting connection refused in 2nd way.Please advise why it is not working for 2nd option.

dilip@ubuntu:~/Desktop/ELK2/e/bin$ curl http://localhost:9200/_cat/health?pretty
1452057531 21:18:51 elasticsearch green 1 1 0 0 0 0 0 0

dilip@ubuntu:~/Desktop/ELK2/e/bin$ curl ‘localhost:9200/_cat/health?v’
curl: (7) Failed to connect to xn--localhost-499d port 9200: Connection refused


(Mark Walkom) #2

You already have asked this in Curl: (7) Failed to connect to xn--localhost-499d port 9200: Connection refused, please keep it to the one thread.


(Mark Walkom) #3