启动elk中elasticsearch服务报错which: no java in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin)

时间:2019-02-28 16:35:02   收藏:0   阅读:1442

  解决办法:

vi /etc/sysconfig/elasticsearch

JAVA_HOME=/usr/local/java

sudo systemctl restart elasticsearch.service

sudo systemctl status elasticsearch.service

  

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!