昨天还能够正常启动,今天及不行。。css
在网上找了不少方法都不行,后来参考https://blog.csdn.net/happyzxs/article/details/89156068,修复好了node
1、遇到的问题bootstrap
启动elasticsearch.bar闪退,进入cmd运行elasticsearch,报错如下错误app
ERROR: [1] bootstrap checks failed [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
2、解决elasticsearch
修改config文件夹中elasticsearch.yml文件ide
将 #cluster.initial_master_nodes: ["node-1","node-2"]改成
cluster.initial_master_nodes: ["node-1"]ui