问题描述:
最新版本5.0release了,想着装上试试,结果一上来就报了两个错,然后就退出了,如下:
解决方法:
1.增大文件描述符和内存锁定问题
[[email protected] ~]# cat >> /etc/security/limits.conf << END
elasticsearch soft memlock unlimited
elasticsearch hard memlock unlimited
* hard nofile 65536
* soft nofile 65536
END
2. max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144]
[[email protected] ~]# echo "vm.max_map_count = 262144" >> /etc/sysctl.conf
[[email protected] ~]# sysctl -p
vm.max_map_count = 262144