Elasticsearch启动异常

1.Permission Denied
异常原因:使用的是root用户解压的elasticsearchxxx.tar.gz,然后使用es用户启动。
解决办法:删除已经解压的安装包,使用es用户登录,重新上传压缩包并解压后重启。
2.ERROR: [2] bootstrap checks failed
max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
max file descriptors [65535] for elasticsearch process is too low, increase to at least [65536]
解决办法:
1)vim config/elasticsearch.yml
新增 network.host: 0.0.0.0 (允许所有主机访问)
2)使用root用户(切记root用户) vim /etc/security/limits.conf
添加如下内容:
* soft nofile 65536
* hard nofile 65536
3)使用root用户 vim /etc/sysctl.conf
添加或修改为如下内容:
vm.max_map_count=655360
保存后执行 sysctl -p
4)操作完成之后,一定要关闭当前会话,重新使用连接工具如xshell登录虚拟机或者服务器,再次启动es即可

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值