为elaticsearch创建用户并赋予相应权限

命令如下

adduser es

passwd es

chown -R es:es elasticsearch/

chmod

java.lang.RuntimeException: can not run elasticsearch as root_创建用户