小编典典

Elasticsearch错误“引导检查失败”(绑定非环回地址)

elasticsearch

最近,在安装Elasticsearch 7.3.2之后,我发现绑定到localhost或127.0.0.1的服务器可以正常工作。

但是我将其提供给外部使用,即使用特定的IP或0.0.0.0,它引发了我的错误并停止了服务器:

绑定或发布到非环回地址,强制执行引导检查[2019-09-19T18:21:43,962] [ERROR] [oebBootstrap]
[MARFEEN]节点验证异常[1]引导检查失败


阅读 611

收藏
2020-06-22

共1个答案

小编典典

无法获得关于此解决方案的任何答案,其中大多数与最大打开文件限制有关。但是,当我discovery.seed_hosts在elasticsearch.yml文件中启用config属性时,此问题已解决:

# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
network.host: 0.0.0.0
#
# Set a custom port for HTTP:
#
#http.port: 9200
#
# For more information, consult the network module documentation.
#
# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when this node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
discovery.seed_hosts: ["127.0.0.1"]

启用上述属性后,它在非环回主机上也可以正常工作。

2020-06-22