安装最新版Elasticsearch报错


 

1 问题:ERROR: 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]

vi /etc/security/limits.conf

* soft nofile 65536

* hard nofile 131072

* soft nproc 2048

* hard nproc 4096

vi /etc/sysctl.conf

vm.max_map_count=655360

保存后执行:

sysctl -p

2 报错  the default discovery settings are unsuitable for production use

单机启动 设置单机master修改 elasticsearch.yml

cluster.initial_master_nodes: ["node-1"] 

3.开通外网

修改elasticsearch.yml

network.host: 0.0.0.0

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM