elasticsearh常见错误和解决方案

一、bootstrap checks failed

max file descriptors [4096] for elasticsearch process likely too low, increase to at least [65536]max number of threads [1024] for user [lishang] likely too low, increase to at least [2048]

解决:切换到root用户,编辑limits.conf 添加类似如下内容vi /etc/security/limits.conf 添加如下内容:

* soft nofile 65536

* hard nofile 131072

* soft nproc 2048

* hard nproc 4096

二、max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144]

解决:切换root帐号执行sysctl -w vm.max_map_count=262144

三、elasticsearch 要求非root账户启动,需要新建账户(例如elastic)切换root账户用命令chown -R elastic:elastic elasticsearch-5.3.0给新建账户elasticsearch的权限,然后再启动。

四、docker启动命令: docker run -d --name elasticsearch-elk -p 9200:9200 -p 9303:9300 -v /yourPath/data:/usr/share/elasticsearch/data elasticsearch:5.6.9

个人博客地址:http://xuyangyang.club(点击打开)

微信订阅号:

                

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值