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
相关推荐
l1t25 分钟前
用docker安装oracle 19c
运维·数据库·docker·oracle·容器
k***92161 小时前
【Linux】进程概念(五):详解环境变量的本质
linux·运维·服务器
专业开发者1 小时前
艾通科技(ITON Technology)借助蓝牙 ® 网状网络,构建适用于自动化控制应用的大规模设备网络
运维·物联网·自动化
KakiNakajima1 小时前
CentOS 7 x86系统安装EMQX 【kaki备忘录】
linux·运维·centos
weixin_462446232 小时前
【原创实践】Docker 镜像批量导出镜像与导入镜像
运维·docker·容器
qq7590353662 小时前
Docker快速部署一款堡垒机系统
运维·docker·容器
敢敢のwings2 小时前
云服务器上部署Dify完整教程
运维·服务器
yiSty3 小时前
linux命令行下使用百度云网盘【自用】
linux·运维·百度云
txzz88884 小时前
CentOS-Stream-10 搭建YUM源Web服务器
linux·运维·centos·yum源·linux系统更新·centos系统更新·自建web yum源
ShirleyWang0124 小时前
【取证学习】Linux系统的证据收集和分析 解决dd备份磁盘爆掉
linux·运维·学习