Installed Java 1.8 and elasticsearch 7.x on linux box from EC2 instance.
curl localhost:9200 - gives a response as below which means everything is good from installation point of view
{
"name" : "ip-172-31-46-49.eu-west-1.compute.internal",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "fVTPcPrESeKSVpTtTLuI5w",
"version" : {
"number" : "7.5.0",
"build_flavor" : "default",
"build_type" : "rpm",
"build_hash" : "e9ccaed468e2fac2275a3761849cbee64b39519f",
"build_date" : "2019-11-26T01:06:52.518245Z",
"build_snapshot" : false,
"lucene_version" : "8.3.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
If I try to access through a public ip by putting the command line in terminal I am getting persmission denied
command : sudo echo "network.host: 0.0.0.0" >> /etc/elasticsearch/elasticsearch.yml
My question/doubt is how can I access through the browser?
Ex : EC2 PublicIP:9200
Any suggestion/leads would be appreciated.