CentOS install jdk

Install jdk

Install jdk automatically (cannot modify the installation path)

The first step, use the yum -y list java\* command to query the version of jdk to be installed;

The second step, use the yum install -y java-1.8.0-openjdk.x86\_64 command to download and install jdk;

The third step, use java -version to check whether the installation is successful, output version information means that java has been installed by default in the usr/lib/jvm/ directory.

Install jdk manually (configure the installation path manually)

The first step, click here, log in oracle to get the information of each version of jdk1.8, then enter the /usr/local/soft/ directory, and execute the wget download link command in it, or yes Download to windows first, upload to the directory of CentOS via xftp, and then use the tar -zxvf jdk-8u241-linux-x64.tar.gz command to decompress;

The second step, use the vi /etc/profile command to open the configuration file and enter the following information at the bottom:

export JAVA\_HOME=/usr/local/soft/jdk1.8.0\_241

export CLASSPATH=$:CLASSPATH:$JAVA\_HOME/lib/export PATH=$PATH:$JAVA\_HOME/bin

The third step, use the source /etc/profile command to activate the configuration information, and then use the java -version to check whether the installation is successful. The output version information means that java has been installed in /usr/local/soft /jdk1.8.0\_241 directory.

Recommended Posts

CentOS install jdk
Linux Centos7 install jdk1.8
Centos 7 install JDK (Linux install jdk)
1.5 Install Centos7
Tencent Cloud Centos install jdk8
Install Java JDK8 under CentOS6
5.1. CentOS@ install JDK1.8 graphic tutorial
Centos6 install Python2.7.13
How to install jdk1.8 on centOS7
Install JDK8 in rpm on CentOS7
Centos7.3 install nginx
CentOS7.2 install Mysql5.7.13
Centos7 install Python 3.6.
CentOS7 install MySQL
Centos7 install protobuf
CentOS 7 install Docker
CentOS7 install GlusterFS
CentOS7 install Docker
Centos6.5 install Tomcat
CentOS install Python 3.6
Vmware install CentOS6
centos7 install docker-ce 18.01.0
CentOS 7.2 install MariaDB
CentOS 7 install Hadoop 3.0.0
Centos7 install Python2.7
CentOS8 install jdk8 / java8 tutorial (recommended)
Centos 7.6 install seleniu
CentOS 7.3 install Zabbix3
Centos7 install LAMP+PHPmyadmin
CentOS install mysql
CentOS install openjdk 1.8
CENTOS6.5 install CDH5.12.1 (1)
CentOS install PHP
Centos7 install Docker
CentOS7 install mysql
Centos7 uninstall openJdk, and install JDK1.8
centOs install rabbitMQ
CentOS 7 install MySQL 5.6
Centos7 install Nginx
CentOS6.5 install CDH5.13
Centos7 install docker18
Centos install Python3
centos7 install nginx-rtmp
CentOS8 install MySQL8.0
Centos6.3 install KVM
CentOS install PostgreSQL 9.1
CentOS7 install mysql8
CentOS 7 install Java 1.8
Centos7 configure JDK
CentOS8 install fastdfs6.06
CentOS 7 install Gitlab
Centos 7 install PostgreSQL
CentOS7 install MySQL8
CentOS 7 install Java 1.8
CentOS 6 install Docker
centos 6.5 install zabbix 4.4
Centos8 install Docker
CentOS6.8 install python2.7
CentOS install nodejs 8
CentOS6.5 install GNS3
centos 7.5 install mysql5.7.17