How to config network.host in elasticsearch.yml?

elasticsearch version: 5.0.2
java version: jdk-8u111

issue: I install my elasticsearch on the server and I want to visit it from localhost. How can I config the network.host. I get some solutions from website, config network.host 0.0.0.0, but it did not work and appeared new problems:“bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
ERROR: bootstrap checks failed”.
Anybody who can give me some help. Thank you.

[2016-12-01T15:57:35,487][INFO ][o.e.n.Node ] [] initializing ... [2016-12-01T15:57:35,593][INFO ][o.e.e.NodeEnvironment ] [Jo5noSh] using [1] data paths, mounts [[/ (/dev/sda4)]], net usable_space [943.8gb], net total_space [1.7tb], spins? [possibly], types [ext4] [2016-12-01T15:57:35,593][INFO ][o.e.e.NodeEnvironment ] [Jo5noSh] heap size [1.9gb], compressed ordinary object pointers [true] [2016-12-01T15:57:35,594][INFO ][o.e.n.Node ] [Jo5noSh] node name [Jo5noSh] derived from node ID; set [node.name] to override [2016-12-01T15:57:35,596][INFO ][o.e.n.Node ] [Jo5noSh] version[5.0.2], pid[14370], build[f6b4951/2016-11-24T10:07:18.101Z], OS[Linux/4.4.0-28-generic/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_111/25.111-b14] [2016-12-01T15:57:36,114][INFO ][o.e.p.PluginsService ] [Jo5noSh] loaded module [aggs-matrix-stats] [2016-12-01T15:57:36,114][INFO ][o.e.p.PluginsService ] [Jo5noSh] loaded module [ingest-common] [2016-12-01T15:57:36,114][INFO ][o.e.p.PluginsService ] [Jo5noSh] loaded module [lang-expression] [2016-12-01T15:57:36,114][INFO ][o.e.p.PluginsService ] [Jo5noSh] loaded module [lang-groovy] [2016-12-01T15:57:36,114][INFO ][o.e.p.PluginsService ] [Jo5noSh] loaded module [lang-mustache] [2016-12-01T15:57:36,114][INFO ][o.e.p.PluginsService ] [Jo5noSh] loaded module [lang-painless] [2016-12-01T15:57:36,114][INFO ][o.e.p.PluginsService ] [Jo5noSh] loaded module [percolator] [2016-12-01T15:57:36,115][INFO ][o.e.p.PluginsService ] [Jo5noSh] loaded module [reindex] [2016-12-01T15:57:36,115][INFO ][o.e.p.PluginsService ] [Jo5noSh] loaded module [transport-netty3] [2016-12-01T15:57:36,115][INFO ][o.e.p.PluginsService ] [Jo5noSh] loaded module [transport-netty4] [2016-12-01T15:57:36,115][INFO ][o.e.p.PluginsService ] [Jo5noSh] no plugins loaded [2016-12-01T15:57:37,265][INFO ][o.e.n.Node ] [Jo5noSh] initialized [2016-12-01T15:57:37,265][INFO ][o.e.n.Node ] [Jo5noSh] starting ... [2016-12-01T15:57:37,375][INFO ][o.e.t.TransportService ] [Jo5noSh] publish_address {192.168.0.155:9300}, bound_addresses {[::]:9300} [2016-12-01T15:57:37,385][INFO ][o.e.b.BootstrapCheck ] [Jo5noSh] **bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks ERROR: bootstrap checks failed** max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144] [2016-12-01T15:57:37,388][INFO ][o.e.n.Node ] [Jo5noSh] stopping ... [2016-12-01T15:57:37,395][INFO ][o.e.n.Node ] [Jo5noSh] stopped [2016-12-01T15:57:37,395][INFO ][o.e.n.Node ] [Jo5noSh] closing ... [2016-12-01T15:57:37,400][INFO ][o.e.n.Node ] [Jo5noSh] closed

I told you on the GitHub issue to read the doc about bootstrap checks. Did you read it?

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