The physical machine cannot access ES and Kibana in the virtual machine

ES

1. Modify the configuration file elasticsearch.yml in the config directory of ES

network.host: 0.0.0.0

open note

cluster.initial_master_nodes: ["node-1", "node-2"]

insert image description here
2. When the ES service is started, the following error message appears:

ERROR: [2] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
[2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

3. Add the following content to the /etc/security/limits.conf file:

* soft nofile 65536
* hard nofile 65536

4. Add the following content to the /etc/sysctl.conf file:

vm.max_map_count=262144

5. Run the command:

sysctl -p

6. Re-run ES and access ES services through a physical machine.

Kibana

1. Modify the configuration file kibana.yml in kibana's config directory

server.host: "0.0.0.0"

insert image description here
2. Restart the kibana service, and you can access it through a physical machine.

If you still can't access, try to turn off the firewall

systemctl stop firewalld

Guess you like

Origin blog.csdn.net/weixin_43074760/article/details/130867522