启动报错如下:
代码语言:javascript复制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
修改elasticsearch.yml 取消注释保留一个节点
代码语言:javascript复制cluster.initial_master_nodes: ["node-1"]
这个的话,这里的node-1是上面一个默认的记得打开就可以了 重启正常
代码语言:javascript复制systemctl restart elasticsearch.service