elasticsearch部署ELKat least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_mast

1、ES启动报错

1、ERROR: [1] bootstrap checks failed. You must address the points described in the following [1] lines before starting Elasticsearch.
bootstrap check failure [1] of [1]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured
ERROR: Elasticsearch did not exit normally - check the logs at /usr/share/elasticsearch/logs/my-es.log

 

 解决方法:

在elasticsearch.yml 中添加:

discovery.seed_hosts: ["127.0.0.1", "[::1]"]

cluster.initial_master_nodes: ["node-1"]

 

然后重新启动elasticsearch,可以发现已经成功启动了:

 

posted on 2022-10-23 17:14  大兄弟666  阅读(300)  评论(0编辑  收藏  举报