已知luncence要求
Basic steps:
Install OpenJDK 17 or 18.
Clone Lucene's git repository (or download the source distribution).
Run gradle launcher script (gradlew).
#1
sudo apt update
sudo apt upgrade
根据文档目录选择正确的jdk版本后
#
sudo apt install openjdk-17-jdk
java -version
#查看jdk位置
sudo update-alternatives --config java
#找文件位置
find /usr/lib/jvm/java-17-openjdk-amd64 -name libjvm.so
#
vim ~/.bashrc
#添加到环境变量
export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64/
export JVM_PATH=/usr/lib/jvm/java-17-openjdk-amd64/lib/server/libjvm.so
#4配置生效
source ~/.bashrc
export ES_JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64/
/usr/lib/jvm/java-17-openjdk-amd64/bin/java
linux jdk安装
最新推荐文章于 2024-08-05 16:01:13 发布