1、java多版本切换命令
[root@harbor-jenkins yum.repos.d]# update-alternatives --config java There are 2 programs which provide 'java'. Selection Command ----------------------------------------------- *+ 1 java-1.8.0-openjdk.x86_64 (/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.392.b08-2.el7_9.x86_64/jre/bin/java) 2 java-11-openjdk.x86_64 (/usr/lib/jvm/java-11-openjdk-11.0.21.0.9-1.el7_9.x86_64/bin/java) Enter to keep the current selection[+], or type selection number: 2 [root@harbor-jenkins yum.repos.d]# java -version openjdk version "11.0.21" 2023-10-17 LTS
标签:selection,java,x86,openjdk,1.8,笔记,64 From: https://www.cnblogs.com/putaoo/p/17884855.html