问题1: 

can not run elasticsearch as root

groupadd es

useradd es -g es

chown -R es:es /usr/local/elasticsearch-6.5.1 该命令是更改该文件夹下所属的用户组的权限

su es #切换用户


问题2:

max file descriptors [65531] for elasticsearch process is too low, increase to at least [65536]

see https://blog.csdn.net/kq1983/article/details/83443907


* hard nofile 65551

问题3:

[2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

vi /etc/sysctl.conf
vm.max_map_count=262200
sysctl -p
sysctl -a |grep 'vm'

 问题4: 内存不够

在config/jvm.options中调整,默认为: 
-Xms1g
-Xmx1g

内存小可用调整为:
-Xms200m
-Xmx200m