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.
In my case, curl somehow doesn't recognize the '
symbol.
Changing '
to "
can fix the problem.
curl -XGET "localhost:9200/?pretty"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With