How to delete or close oldest indices

I am so noob, even when I try to list the indices using the command

curl 'localhost:9200/_cat/indices?v'

it keeps on displaying this message

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

Some possible causes:

  • ES isn't running.
  • ES is running but on another port than 9200.
  • ES is running on port 9200 but doesn't listen on the loopback interface.
  • ES is running on port 9200 and listens on the loopback interface but there's a firewall blocking the access.

can you teach me about loopback interface? :blush:

Loopback is 127.0.0.1, generally it's the interface called lo.

are u able to just go to http://localhost:9200