ElasticSearch 5.0.0 安装部署常见错误或问题

1.ERROR: bootstrap checks failed

[1]: max file descriptors [65535] for elasticsearch process is too low, increase to at least [65536]

原因:无法创建本地文件问题,用户最大可创建文件数太小

解决方案:
切换到root用户,编辑limits.conf配置文件, 添加类似如下内容:

[root@Aliyun ~]# vim /etc/security/limits.conf

添加如下内容:
*  soft nofile 65536
* hard nofile 131072

备注:* 添加到最后面

备注:* 代表Linux所有用户名称(比如 hadoop)

保存、退出、重新登录才可生效

[2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

[root@iz2ze1bzpi3orra8lboxqiz ~]# vim  /etc/sysctl.conf
 
添加下面配置:

vm.max_map_count=655360

并执行命令:

[root@iz2ze1bzpi3orra8lboxqiz ~]# sysctl -p

[3]: memory locking requested for elasticsearch process but memory is not locked

[root@iz2ze1bzpi3orra8lboxqiz ~]# vim /etc/security/limits.conf
 
添加:
 
* soft nproc 32000
* hard nproc 32000
* hard memlock unlimited
* soft memlock unlimited
 

备注:* 添加到最后面

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
原文地址:https://www.cnblogs.com/chuijingjing/p/10029418.html