es7.13.2集群安装失败报错处理

ERROR: [2] bootstrap checks failed.You must address the points described in the following [2] lines before starting Elasticsearch.

bootstrap checks failed [1] of [2]: memory locking requested for elasticsearch process but memory is not locked

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

ERROR: Elasticsearch did not exit normally - check the logs at /a/es/logs/my-cluster.log

系统:centos7.6 (vm虚拟机)

软件:java-1.8、elasticsearch-5.6.16-1.noarch

错误信息:

2019-11-21T00:29:51,557\]\[ERROR\]\[o.e.b.Bootstrap \] \[elk-1\] node validation exception \[1\] bootstrap checks failed \[1\]: memory locking requested for elasticsearch process but memory is not locked 解决方法一(关闭bootstrap.memory_lock:,会影响性能): ## vim /etc/elasticsearch/elasticsearch.yml // 设置成false就正常运行了。 bootstrap.memory_lock: false 解决方法二(开启bootstrap.memory_lock:): 1. 修改文件/etc/elasticsearch/elasticsearch.yml,上面那个报错就是开启后产生的,如果开启还要修改其它系统配置文件 bootstrap.memory_lock: true 2. 修改文件/etc/security/limits.conf,最后添加以下内容。 ```bash vim /etc/security/limits.conf ``` ```bash * soft nofile 65536 * hard nofile 65536 * soft nproc 32000 * hard nproc 32000 * hard memlock unlimited * soft memlock unlimited ``` 3. 修改文件 /etc/systemd/system.conf ,分别修改以下内容。 ```bash DefaultLimitNOFILE=65536 DefaultLimitNPROC=32000 DefaultLimitMEMLOCK=infinity ``` 改好后重启下系统。再启动elasticsearch就没报错了 。 ```bash vim /etc/sysctl.conf ``` 保存文件并执行以下命令使修改生效: ```bash sysctl -p ``` es7.13.2启动报错: bootstrap checks failed \[1\] of \[2\]: max virtual memory areas vm.max_map_count \[65530\] is too low, increase to at least \[262144

bash 复制代码
vim /etc/sysctl.conf

vm.max_map_count=262144

 sysctl -p
相关推荐
阿豪学编程15 分钟前
【Linux】进程信号深度解析
linux·运维·服务器
广东大榕树信息科技有限公司1 小时前
动环监控如何有效提升机房环境管理的可靠性与响应速度?
运维·网络·物联网·国产动环监控系统·动环监控系统
G皮T3 小时前
【Elasticsearch】查询性能调优(四):计数的精确性探讨
大数据·elasticsearch·搜索引擎·全文检索·es·性能·opensearch
zdd567893 小时前
行存表与列存表简述
运维·postgresql
福尔摩斯张4 小时前
Linux的pthread_self函数详解:多线程编程中的身份标识器(超详细)
linux·运维·服务器·网络·网络协议·tcp/ip·php
2401_832298104 小时前
一云多芯时代:云服务器如何打破芯片架构壁垒
运维·服务器·架构
Web极客码4 小时前
如何在 Linux 中终止一个进程?
linux·运维·服务器
一枚正在学习的小白5 小时前
prometheus监控对外服务
运维·prometheus
tzhou644525 小时前
Docker Compose 编排与 Harbor 私有仓库
运维·docker·容器
A13247053125 小时前
防火墙配置入门:保护你的服务器
linux·运维·服务器·网络