(1)max file descriptors [65535] for elasticsearch process is too low, increase to at least [65536]
切换到root用户,编辑limits.conf添加如下内容
vim /etc/security/limits.conf
#添加如下配置,*代表所有用户,也可以在前面写指定的用户
* soft nofile 65536
* hard nofile 65536
(2)max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
切换到root用户,修改/etc/sysctl.conf文件添加如下内容
vim /etc/sysctl.conf
#增加配置
vm.max_map_count=262144
重启配置
sysctl -p