The elasticsearch external network IP cannot be accessed

Installed an ES 5.2.2 on a virtual machine today

As a result , curl " http://127.0.0.1:9200 " can be accessed normally, but using the external network ip prompts to reject the link

Solution: vim config/elasticsearch.yml

Added: network.host: 0.0.0.0

Reboot problem solved

In addition, individual virtual machines cannot start ES, check the log if there is:

[2017-03-28T15:35:19,948][ERROR][o.e.b.Bootstrap ] [kSH2rCN] node validation exception bootstrap checks failed max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

Solution: switch root account vim /etc/sysctl.conf

Add a line of vm.max_map_count=655360

Then execute sysctl -p

Switch back to the ES account and restart the problem to solve

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325172493&siteId=291194637