Elasticsearch localhost可以启动,绑定ip启动失败

出现bootstrap check的原因多是因为个人开发机配置不高造成的,在生产服务器上使用es默认配置启动完全没问题。但是,既然在个人机上启动有问题,总得解决是吧。方案如下:

①编辑$ES_HOEM/config/elasticsearch.yml,修改network.host:为绑定ip。然后重启,报错如下

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

vim   /etc/security/limits.conf

* soft nproc 65536

* hard nproc 65536

* soft nofile 65536

* hard nofile 65536

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

vim   /etc/sysctl.conf

         vm.max_map_count=262144

保存退出,sysctl  -p  不重启使配置生效

[x]: max number of threads [1024] for user [test] is too low, increase to at least [4096]

vim   /etc/security/limits.d/90-nproc.conf

1024 改为4096或者unlimited

[x]: system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk

vim   elasticsearch.yml

bootstrap.memory_lock: false

bootstrap.system_call_filter: false

⑥重启使配置生效

reboot & restart elasticsearch

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值