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(点击打开)
微信订阅号: