我尝试了几种在官方文档或互联网上找到的建议配置组合。但是,无论配置如何,我都会不断收到以下所示的错误。

[2016-12-14T13:47:37,706][INFO ][o.e.p.PluginsService     ] [vc6lzXh] no plugins loaded
[2016-12-14T13:47:43,048][INFO ][o.e.n.Node               ] initialized
[2016-12-14T13:47:43,054][INFO ][o.e.n.Node               ] [vc6lzXh] starting ...
[2016-12-14T13:47:43,495][INFO ][o.e.t.TransportService   ] [vc6lzXh] publish_address {192.168.34.84:9300}, bound_addresses {[::1]:9300}, {127.0.0.1:9300}
[2016-12-14T13:47:43,514][INFO ][o.e.b.BootstrapCheck     ] [vc6lzXh] 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-14T13:47:43,538][INFO ][o.e.n.Node               ] [vc6lzXh] stopping ...
[2016-12-14T13:47:43,680][INFO ][o.e.n.Node               ] [vc6lzXh] stopped
[2016-12-14T13:47:43,681][INFO ][o.e.n.Node               ] [vc6lzXh] closing ...
[2016-12-14T13:47:43,700][INFO ][o.e.n.Node               ] [vc6lzXh] closed

Elasticsearch v5.1.1安装在具有桥接IP地址192.168.34.84的虚拟机中

我尝试过的配置如下:
1。
network.host, 192.168.34.84

2。
network.host: 192.168.34.84
network.public_host: 192.168.34.84

3。
network.bind_host: 192.168.34.84

4。
network.bind_host: 0.0.0.0
network.publish_host: 192.168.34.84

这些都没有为我工作。我猜v5.11有重大变化。有什么帮助吗?

最佳答案

根据Bootstrap Checks,确保已在计算机中设置了重要设置。

network.host设置为类似的内容,其中network.bind_hostnetwork.public_host会默认使用network.host的值:

network.host: 192.168.34.84

尝试仅设置上述属性,而不设置其他属性。也许您可以查看以下内容:
  • Blog Post
  • Network Settings

  • 编辑:

    因此,根据您的日志,您必须以机器的root用户身份将vm.max_map_count增加到262144(在此处进行设置):
    sysctl -w vm.max_map_count=262144
    

    查看有关VM的详细信息here

    希望能帮助到你!

    关于networking - 绑定(bind)到Elasticsearch 5中的特定IP地址,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/41138604/

    10-11 18:19