ERROR:[2]bootstrapchecksfailed.Youmustaddressthepointsdescribedinthefollowing[2]linesbeforestartingElasticsearch.
bootstrapcheckfailure[1]of[2]:maxfiledescriptors[4096]forelasticsearchprocessistoolow,increasetoatleast[65535]
bootstrapcheckfailure[2]of[2]:maxvirtualmemoryareasvm.max_map_count[65530]istoolow,increasetoatleast[262144]
主要是文件权限与内存大小问题:
elasticsearch用户拥有的可创建文件描述的权限太低,至少需要65536,
处理办法:#切换到root用户修改
vim/etc/security/limits.conf# 在最后面追加下面内容
elk hard nofile65536
elk soft nofile65536#***是启动elk的用户
max_map_count文件包含限制一个进程可以拥有的VMA(虚拟内存区域)的数量
处理办法:#切换到root用户修改
vim/etc/sysctl.conf # 在最后面追加下面内容
vm.max_map_count=655360
执行sysctl -p