目录
- 开发环境安装JDK
- 生产环境安装JDK
- Java版本
开发环境安装JDK
可以通过oracle的官方下载地址,下载安装
- https://www.oracle.com/cn/java/technologies/downloads/
- https://www.oracle.com/cn/java/technologies/downloads/archive/
生产环境安装JDK
文档
# Java Runtime Environment
yum install java-1.8.0-openjdk
# develop
yum install java-1.8.0-openjdk-devel
Java版本
Oracle JDK
$ java -version
java version "1.8.0_251"
Java(TM) SE Runtime Environment (build 1.8.0_251-b08)
Java HotSpot(TM) 64-Bit Server VM (build 25.251-b08, mixed mode)
OpenJDK
java -version
openjdk version "1.8.0_262"
OpenJDK Runtime Environment (build 1.8.0_262-b10)
OpenJDK 64-Bit Server VM (build 25.262-b10, mixed mode)