4

I am learning to using ElasticSearch on Windows recently.

I followed the instructions as this page said and got stuck at Checking that Elasticsearch is running.

I had downloaded the latest curl binary executable (7.54.0) for windows, but when I copied the following line using the button COPY AS CURL:

curl -XGET 'localhost:9200/?pretty'

It gave the error:

curl: (6) Could not resolve host: 'localhost

I had tried the solution here to disable IPV6 but the problem still remains.

J3soon
  • 3,013
  • 2
  • 29
  • 49

1 Answers1

8

In my case, curl somehow doesn't recognize the ' symbol.

Changing ' to " can fix the problem.

curl -XGET "localhost:9200/?pretty"
J3soon
  • 3,013
  • 2
  • 29
  • 49