一、入门初始安装
1. 具体安装教程
1. linux 系统中如何安装java环境(通过tar.gz文件)
安装包下载链接
Linux 系统的 Java 环境变量配置教程
1. linux查看java版本,以及配置java home
3.【实操】如何在linux系统查找JAVA安装路径,定义JAVA_HOME
个人理解
[root@linuxprobe home]# cat /etc/system-release ## 查看系统版本Red Hat Enterprise Linux release 8.0 (Ootpa)[root@linuxprobe home]# java ##检测是否安装javabash: java: command not found...Failed to search for file: Cannot update read-only repo[root@linuxprobe home]# java -version ## 查看版本bash: java: command not found...Failed to search for file: Cannot update read-only repo[root@linuxprobe home]# which java ## 是否有java执行命令/usr/bin/which: no java in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)[root@linuxprobe home]# uname -a ## 查看系统内核、架构Linux linuxprobe.com 4.18.0-80.el8.x86_64 #1 SMP Wed Mar 13 12:02:46 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux[root@linuxprobe home]# hostnamectl ## 同上 Static hostname: linuxprobe.com Icon name: computer-vm Chassis: vm Machine ID: 1667052376ea4207aa566e9d7a42456b Boot ID: c37ae01cf99e40909900fa77495cca76 Virtualization: vmware Operating System: Red Hat Enterprise Linux 8.0 (Ootpa) CPE OS Name: cpe:/o:redhat:enterprise_linux:8.0:GA Kernel: Linux 4.18.0-80.el8.x86_64 Architecture: x86-64
查看本机系统,如果 Linux系统是 x86_64
(x86-64)的,那么无疑是本次教程的默认安装教程路线。
参考链接
1. linux安装java tar.gz_linux安装jdk(tar.gz版)
2. bash: /home/jdk/jdk1.8.0_261/bin/java: /lib/ld-linux.so.2: bad ELF interpre问题
二、重装 Java
具体实现
来源地址:https://blog.csdn.net/qq_42701659/article/details/130929546