ERROR: bootstrap checks failed
max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
切换到root用户,编辑 /etc/security/limits.conf 文件
添加如下内容
* soft nofile 65536
* hard nofile 131072
* soft nproc 2048
* hard nproc 4096
* 需要重启生效
编辑 /etc/sysctl.conf 文件
添加如下内容
vm.max_map_count=655360
并执行命令
sysctl -p
重启es