설치 가능한 java 버전 확인
[root@localhost ~]# yum list java*jdk-devel
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.kakao.com
* extras: mirror.kakao.com
* updates: mirror.kakao.com
Available Packages
java-1.6.0-openjdk-devel.x86_64 1:1.6.0.41-1.13.13.1.el7_3 base
java-1.7.0-openjdk-devel.x86_64 1:1.7.0.221-2.6.18.0.el7_6 updates
java-1.8.0-openjdk-devel.i686 1:1.8.0.212.b04-0.el7_6 updates
java-1.8.0-openjdk-devel.x86_64 1:1.8.0.212.b04-0.el7_6 updates
java-11-openjdk-devel.i686 1:11.0.3.7-0.el7_6 updates
java-11-openjdk-devel.x86_64 1:11.0.3.7-0.el7_6 updates
조회 결과중 필요한 버전을 선택하여 설치
> yum install java-설치버전 -y
[root@localhost ~]# yum install java-1.8.0-openjdk-devel.x86_64 -y
설치 확인
> java -version
[root@localhost ~]# java -version
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-b04)
OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)
'CentOS' 카테고리의 다른 글
CentOS - gcc 설치하기 (0) | 2019.08.31 |
---|---|
CentOS - 티베로(TIBERO) 5 설치하기 (2) (0) | 2019.07.14 |
CentOS - 티베로(tibero) 5 설치하기 (1) (0) | 2019.07.14 |
CentOS - hostname 변경하기 (0) | 2019.07.14 |
CentOS - java 환경변수 설정하기 (0) | 2019.07.14 |