I've install ES on my VM which it has an OS of centos 7
. It network.host: bind to the localhost. I can browse via port 9200.
My problem is that I've changed the network host to:0.0.0.0
(So I can get public access from my host PC).
the service started but the port is not listening.
I want to access ES from my host PC.
How can i change the network.host ?
I faced same issue in elasticsearch 7.3.0 version. I resolved by putting following
values in /etc/elasticsearch/elasticsearch.yaml as shown below
network.host: 127.0.0.1
http.host: 0.0.0.0
Looking at the Elasticsearch Network Settings documentation, it doesn't appear that 0.0.0.0
is a valid setting for network.host
.
Try instead the special value _global_
. So the section of your elasticsearch.yaml
might look like this:
network: host: _global_
This should tell Elasticsearch to listen on all network interfaces.
If you are planning to set network.host
other than default(127.0.0.1) then change following details in /etc/elasticsearch/elasticsearch.yml
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With