elasticsearch不能以root用户运行:can not run elasticsearch as root

参考

https://blog.csdn.net/hoooooly/article/details/80612612

问题:

原因:

不能使用root用户启动

解决:

adduser elastic // 设置密码和信息

chown -R elastic:elastic <es所在文件夹>  // 将es的拥有者和group改为elastic

su elastic  // 切换到子用户elastic

切换到子用户,仍然出现的问题:

jdk必须是8以上,但是装的已经是8了为什么还不行。

原因:

因为elasticsearch文件夹所在路径是root路径下

解决:

mv /root/app/elasticsearch-5.4.0 /usr/app/elasticsearch-5.4.0/

启动,完美解决

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章