解决办法:
vi /etc/sysconfig/elasticsearch
JAVA_HOME=/usr/local/java
sudo systemctl restart elasticsearch.service
sudo systemctl status elasticsearch.service
解决办法:
vi /etc/sysconfig/elasticsearch
JAVA_HOME=/usr/local/java
sudo systemctl restart elasticsearch.service
sudo systemctl status elasticsearch.service