查看错误日志
[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
[2021-03-11T11:57:48,648][INFO ][o.e.n.Node ] [izqj3ircmjwgfkz] stopping ...
[2021-03-11T11:57:48,659][INFO ][o.e.n.Node ] [izqj3ircmjwgfkz] stopped
[2021-03-11T11:57:48,660][INFO ][o.e.n.Node ] [izqj3ircmjwgfkz] closing ...
[2021-03-11T11:57:48,715][INFO ][o.e.n.Node ] [izqj3ircmjwgfkz] closed
解决方案
vim /etc/elasticsearch/elasticsearch.yml
修改
# ------------------------------------ Node ------------------------------------
node.name: node-1
# --------------------------------- Discovery ----------------------------------
cluster.initial_master_nodes: ["node-1"]
欧克