1. max virtual memory areas vm.max_map_count [65530] is too low, increase to at least
解决方法:很明显,已经提示了内存过少,如果虚拟机是2G内存,是不够的,我关机调成了4G,还是出现这个,然后再用root用户修改/etc/sysctl.conf
vm.max_map_count=655360
添加完之后 sysctl -p 立刻生效。
2. max file descriptors [4096] for elasticsearch process is too low
解决方法:很明显,文件数过小,修改/etc/security/limits.conf,然后切换到普通用户,ulimit -n查看一下是否生效了,然后启动就正常了
* soft nofile 924000
* hard nofile 924000
启动正常