Tencent Cloud Centos install jdk8

  1. Download the tar of jdk1.8
 cd /usr/local/src #Switch to this directory
 wget url #Download the tar package of jdk8
  1. After the download is complete, unzip the tar package
 tar -zxvf jdk-8u152-linux-x64.tar.gz
  1. Cut the decompressed file to the usr/local directory and rename it to jdk8
 mv jdk1.8_152 ../jdk8
  1. Configure environment variables
vim /etc/profile

# Append the following code at the end of the file
JAVA_HOME=/usr/local/jdk8
JRE_HOME=/usr/local/jdk8/jre
CLASS_PATH=.:$JAVA_HOME/lib
PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
export JAVA_HOME JRE_HOME PATH CLASS_PATH 

# Update the configuration after the addition is complete
source /etc/profile
# Check whether the installation is successful and display the following content, which is ok
[ root@VM_177_101_centos conf]# java -version
java version "1.8.0_161"Java(TM) SE Runtime Environment(build 1.8.0_161-b12)
Java HotSpot(TM)64-Bit Server VM(build 25.161-b12, mixed mode)

Recommended Posts

Tencent Cloud Centos install jdk8
Tencent Cloud Centos install nginx
Tencent Cloud CentOS7 install LNMP+wordpress
CentOS install jdk
Tencent Cloud Centos7 install java server
Tencent Cloud Centos7 install java server
Linux Centos7 install jdk1.8
CentOS7 install JDK8, tomcat8
Centos 7 install JDK (Linux install jdk)
CentOS 7 install JAVA environment (JDK 1.8)
Install Java JDK8 under CentOS6
5.1. CentOS@ install JDK1.8 graphic tutorial
1.5 Install Centos7
Centos 7 install jdk and package service service
How to install jdk1.8 on centOS7
Minimal install JDK 1.8 tutorial in CentOS 7
CentOS8 install jdk8 / java8 tutorial (recommended)
Linux CentOS 7 install JDK detailed steps
Centos7 uninstall openJdk, and install JDK1.8
Centos6 install Python2.7.13
Centos7.3 install nginx
CentOS7.2 install Mysql5.7.13
CentOS install Redmine
Centos7 install Python 3.6.
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
CentOS install Python 3.6
centos7 install docker-ce 18.01.0
CentOS 7.2 install MariaDB
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
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
Centos7 configure JDK
CentOS8 install fastdfs6.06