java安装Solr PHP java_主页错误
我正试图通过服务器上的命令行安装Solr PHP
我正在运行安装
root@vps25581 [/opt]# ./install_solr_service.sh solr-6.4.1.tgz
但我一直在犯这样的错误:
The currently defined JAVA_HOME (/usr/local/jdk) refers to a location where Java could not be found. Aborting. Either fix the JAVA_HOME variable or remove it from the environment so that the system PATH will be searched.
但是当我echo $JAVA_HOME
我得到:/usr/bin/java
另外,当我检查目录/usr/bin/java
时,我找不到任何。jdk文件或任何其他文件
我怎样才能找到正确的位置
# 1 楼答案
很可能是一种象征性的联系
将向您显示它当前指向的内容
如果需要更新,请使用以下命令:
更新符号链接并尝试重新安装