es 因为安全问题拒绝使用 root 用户启动
# groupadd es # useradd es -g es -p 密码 # -g 指定组 -p 指定密码 # chown -R es:es elasticsearch/ # -R : 处理指定目录下的所有文件 # su es # cd elasticsearch/bin # ./elasticsearch # ./elasticsearch -d # 后台方式启动 # curl 127.0.0.1:9200