0
votes

I have purchased space of 1Gb Ubuntu server to deploy my Elasticsearch Application. I followed the guide below to deploy Elasticsearch server.
Link to guide
Now whenever I try to access Elasticsearch server using a curl command, it shows the following error

curl: (7) Failed to connect to 0.0.0.0 port 9200: Connection refused

Here is the curl command I tried

curl -XGET '0.0.0.0:9200/?pretty'

Which step could I have missed or is not shown in the guide? Thank you

1

1 Answers

0
votes

Is your elasticsearch service running?

Check with the following command

systemctl status elasticsearch

If it is not running try to start it with

systemctl start elasticsearch

After a few minutes check if it is still running or crashed using systemctl status elasticsearch. If it has crashed please add more details to your question.