首页 > 其他 > 详细

elasticsearch 7.10.1 配置远程访问后启动报错

时间:2020-12-27 21:20:16      阅读:144      评论:0      收藏:0      [点我收藏+]

在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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!