昨天還能夠正常啓動,今天及不行。。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