在yum包管理中安装了多个java环境,可以通过以下命令进行切换

update-alternatives --config java

image.png

Q.E.D.


愿永远保持对技术的热情