安装ElsearchSerach5.3.0报错信息汇总

来源:互联网 发布:林彪为什么出逃 知乎 编辑:程序博客网 时间:2024/05/29 23:22

原文地址:http://blog.csdn.net/hblfyla/article/details/70256879


启动报错1

es5.2无法启动bug
报错:
ERROR: bootstrap checks failed
system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk


原因:
这是在因为Centos6不支持SecComp,而ES5.2.0默认bootstrap.system_call_filter为true进行检测,所以导致检测失败,失败后直接导致ES不能启动。



解决:
在elasticsearch.yml中配置bootstrap.system_call_filter为false,注意要在Memory下面:

bootstrap.memory_lock: falsebootstrap.system_call_filter: false

使用root账号启动es后 会遇到以下问题


解决方案:

因为安全问题elasticsearch 不让用root用户直接运行,所以要创建新用户

  • 建议创建一个单独的用户用来运行ElasticSearch

  • 创建elsearch用户组及elsearch用户

groupadd elsearchuseradd elsearch -g elsearch -p elasticsearch

使用elsearch启动ES后 又会遇到以下问题


解决方法参考 

切换到root用户

vi /etc/security/limits.conf

添加如下内容:

* soft nofile 65536* hard nofile 131072* soft nproc 2048* hard nproc 4096


vi /etc/security/limits.d/90-nproc.conf

修改如下内容:* soft nproc 1024#修改为* soft nproc 2048

vi /etc/sysctl.conf 

添加下面配置:vm.max_map_count=655360

并执行命令:sysctl -p


然后,重新启动elasticsearch,即可启动成功。

0 0