java 安装
Last updated on November 20, 2024 am
🧙 Questions
☄️ Ideas
yum安装openjdk8
yum安装的openjdk,默认JAVA_HOME路径
/usr/lib/jvm/java-1.8.0-openjdk
sudo yum install java-1.8.0-openjdk-devel java-1.8.0-openjdk -y
yum查询本地可安装java版本
# 查询本地安装的java
rpm -qa|grep java
# 搜索可安装的java版本
yum search java|grep jdk
yum卸载java
sudo rpm -qa|grep java
sudo yum remove java-1.8.0-openjdk-headless
解压安装java
sudo tar -vzxf jdk-8u291-linux-x64.tar.gz -C /opt/
sudo vim /etc/profile
# ============================= /etc/profile =====================
export JAVA_HOME=/opt/jdk1.8.0_291
PATH=$PATH:$JAVA_HOME/bin
# ============================= /etc/profile =====================
source /etc/profile
openjdk离线下载安装
sudo rpm -ivh java-1.8.0-openjdk-*.rpm
yum安装openjdk11
rpm -qa|grep java
sudo yum remove -y java-1.8.0-openjdk-headless
yum search java|grep jdk
sudo yum install java-11-openjdk-devel java-11-openjdk
mac安装默认地址
/Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home
zulu安装
卸载java
sdkman
curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk versionï
安装java
https://sdkman.io/jdks
# 查看java列表
sdk list java
sdk install java ${Identifier}
sdk install java 8.0.392.fx-zulu
sdk current java
sdk default java 8.0.392-amzn
sdk uninstall java 8.0.392-amzn
# 更新在sdk
sdk selfupdate
安装路径
/Users/ispong/.sdkman/candidates/java
🔗 Links
java 安装
https://ispong.isxcode.com/spring/java/java 安装/