Linux Centos7 install jdk1.8

Linux Centos7 install jdk1.8

1、 First check if java is installed on the current system

After entering the command, see if there is any version data

2、 If there is a version to uninstall using rpm -e --nodeps

Upload jdk to /usr/local directory

download link

https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

3、 Use the unzip command after uploading

tar -zxvf /usr/local/jdk version

4、 Perform jdk variable configuration

vi /etc/profile

Add at the end

JAVA_HOME=/usr/local/jdk1.8.0_201CLASSPATH=.:JAVA_HOME/lib/tools.jar****PATH=JAVA_HOME/bin:$PATHexport JAVA_HOME CLASSPATH PATH

5、 Next press esc

Enter: wq save

6、 Reload configuration file

source /etc/profile

7、 Check whether the jdk is installed successfully

Enter javac or java -version

Just have data

Recommended Posts

Linux Centos7 install jdk1.8
Centos 7 install JDK (Linux install jdk)
CentOS install jdk
Linux CentOS 7 install JDK detailed steps
CentOS (linux) install PostgreSQL
CentOS7 install JDK8, tomcat8
CentOS 7 install JAVA environment (JDK 1.8)
Linux Centos7 install redis tutorial
Install MySQL 8.0.16 on Linux Centos
Install MySQL under Linux (CentOS 7)
Tencent Cloud Centos install jdk8
Install Java JDK8 under CentOS6
1.5 Install Centos7
5.1. CentOS@ install JDK1.8 graphic tutorial
CentOS 6.8 under linux install mongodb
Centos 7 install jdk and package service service
Install JDK8 in rpm on CentOS7
Minimal install JDK 1.8 tutorial in CentOS 7
CentOS8 install jdk8 / java8 tutorial (recommended)
Install MySQL on Linux CentOS7 (Windows)
Centos7 uninstall openJdk, and install JDK1.8
​Install Oracle database on CentOS Linux
Linux CentOS6 compile and install Pyt
Use VMware15 to install Linux (CentOS6.5)
Centos7.3 install nginx
CentOS7.2 install Mysql5.7.13
CentOS install Redmine
CentOS7 install MySQL
Centos7 install protobuf
CentOS 7 install Docker
CentOS7 install GlusterFS
CentOS 7.4 install Zabbix 3.4
CentOS7 install Docker
Centos6.5 install Tomcat
Vmware install CentOS6
CentOS 7 install Hadoop 3.0.0
Centos7 install Python2.7
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
Linux01 install centOS6.5mini
CentOS6 install mist.io
Centos7 install Docker
CentOS7 install mysql
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 docker
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