Elasticsearch Failed connect to localhost:9200; Connection refused
I’ve installed my centos 7, elasticsearch.
from this docs; https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-elasticsearch-on-centos-7.
All the conf are the same as shown.
But when ı TRY to curl -X GET ’http://localhost:9200’.
There’s an error as;
Failed connect to localhost:9200; Connection refused
What could be the problem and how to solve this?
Couldnt understand whats wrong. Everything is the same as tutorial.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×