I can't access my elasticsearch , since it's already running in my terminal

Good morning guys, I'm trying to access my elasticsearch but so far without success.
I installed it on my centos8 virtual machine and it is already running. I gave a netstat -na to see and it says that I have to enable the port

is getting this error
curl: (7) Failed to connect to 172.31.25.200 port 9200: Connection refused

[centos@ip-localhost ~]$ netstat -na | grep 9200
tcp6 0 0 127.0.0.1:9200 :::* LISTEN
tcp6 0 0 ::1:9200 :::* LISTEN

I already configured it in:
/etc/elasticsearch/elasticsearch.yml
and nothing works.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.