본문 바로가기
[AWS-RDP]/OS

[중요][AWS] JAVA 설치!!

by METAVERSE STORY 2023. 7. 9.
반응형

 

 

       # EC2 시스템 업데이트
       $ sudo yum update –y

       #  JDK 설치
       Amazon Linux 2 의 경우:
       $ sudo yum install -y java-1.8.0-openjdk.x86_64
       -----------------------------------------------------------------------------------


     # sudo yum list | grep java-1.8 | more   (조회)
     # sudo yum install -y java-1.8.0-openjdk.x86_64   (설치)

     # yum list installed | grep openjdk  (설치내용 조회)
       java-1.8.0-openjdk.x86_64           1:1.8.0.372.b07-1.amzn2.0.1      @amzn2-core
       java-1.8.0-openjdk-headless.x86_64  1:1.8.0.372.b07-1.amzn2.0.1      @amzn2-core

     # java -version  (버전 확인)
       openjdk version "1.8.0_372"
       OpenJDK Runtime Environment (build 1.8.0_372-b07)
       OpenJDK 64-Bit Server VM (build 25.372-b07, mixed mode)

 

 

반응형

댓글