启动elasticsearch报错 [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
转载:启动elasticsearch报错:max virtual memory areas vm.max_map_count [65530] is too low, increase to at le...
报错代码
[1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
2.错误原因:
elasticsearch用户拥有的内存权限太小,至少需要262144;
3.解决方法:
(1)切换到root用户:
su root
(2)输入命令:
sysctl -w vm.max_map_count=262144
检查修改结果:
sysctl -w vm.max_map_count=262144
(3)修改 /etc/sysctl.conf文件
vim /etc/sysctl.conf
修改内容
vm.max_map_count=262144