在centos服务器安装好elasticsearch 7.10.1后,在elasticsearch.yml配置文件中配置了network.host和http.port后,启动报错:
Dec 27 20:30:19 centos7 systemd[1]: Starting Elasticsearch...
Dec 27 20:30:40 centos7 systemd-entrypoint[6082]: ERROR: [1] bootstrap checks failed
Dec 27 20:30:40 centos7 systemd-entrypoint[6082]: [1]: the default discovery settings are u...ed
Dec 27 20:30:40 centos7 systemd-entrypoint[6082]: ERROR: Elasticsearch did not exit normall...og
Dec 27 20:30:40 centos7 systemd[1]: elasticsearch.service: main process exited, code=exite...n/a
Dec 27 20:30:40 centos7 systemd[1]: Failed to start Elasticsearch.
Dec 27 20:30:40 centos7 systemd[1]: Unit elasticsearch.service entered failed state.
Dec 27 20:30:40 centos7 systemd[1]: elasticsearch.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
解决办法:
在elasticsearch.yml中增加如下配置:
bootstrap.system_call_filter: false
cluster.initial_master_nodes: ["node-1"]
注意的是如果自己设置了节点名称,要修cluster.initial_master_nodes配置值为你自己的名称值。
elasticsearch 7.10.1 配置远程访问后启动报错
原文:https://www.cnblogs.com/zheng-hong-bo/p/14198585.html