Linux - Java 8 introductory installation and reinstallation tutorial collection

1. Getting Started Initial Installation

1. Detailed installation tutorial

1. How to install java environment in linux system (through tar.gz file)

Installation package download link

Java tar.gz installation package download link portal

Java environment variable configuration tutorial for Linux systems

1. Check the java version on linux and configure java home

2. How to configure JAVA_HOME in Linux environment

3. [Practical] How to find the JAVA installation path in the Linux system and define JAVA_HOME

4. Linux configuration java_home

personal understanding

[root@linuxprobe home]# cat /etc/system-release  ## 查看系统版本
Red Hat Enterprise Linux release 8.0 (Ootpa)
[root@linuxprobe home]# java  ##检测是否安装java
bash: 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

Insert image description here

Check the local system. If the Linux system is x86_64( x86-64 ), it will undoubtedly be the default installation tutorial route for this tutorial.

Reference link

1. Linux installs java tar.gz_linux installs jdk (tar.gz version)

2. bash: /home/jdk/jdk1.8.0_261/bin/java: /lib/ld-linux.so.2: bad ELF interpre problem


2. Reinstall Java

Implementation

1. Complete steps to install JDK1.8 on Linux

Guess you like

Origin blog.csdn.net/qq_42701659/article/details/130929546