[[email protected] ~]# java -version -bash: java: command not found
出现上面问题,解决方法:
[[email protected] ~]# source /etc/profile
最后在测试是否安装成功:
[[email protected] ~]# java -version java version "1.8.0_241" Java(TM) SE Runtime Environment (build 1.8.0_241-b07) Java HotSpot(TM) 64-Bit Server VM (build 25.241-b07, mixed mode) [[email protected] ~]#
原文地址:https://www.cnblogs.com/wanerhu/p/12262344.html
时间: 2024-11-01 17:55:45