-
EC2 java 17,18 설치꿀팁 2023. 3. 31. 23:45
https://techviewleo.com/install-java-openjdk-on-ubuntu-linux
sudo apt update sudo apt install openjdk-17-jdk
이렇게 설치하거나, 아래처럼 설치하면 된다.
https://docs.aws.amazon.com/corretto/latest/corretto-17-ug/generic-linux-install.html
Amazon Corretto 17 Installation Instructions for Debian-Based, RPM-Based and Alpine Linux Distributions - Amazon Corretto 17
Amazon Corretto 17 Installation Instructions for Debian-Based, RPM-Based and Alpine Linux Distributions This topic describes how to install Amazon Corretto 17 on Debian-based, RPM-based and Alpine Linux distributions. Install Amazon Corretto 17 on Debian-B
docs.aws.amazon.com
ec2에서는 apt 를 사용하므로, 위에 문서에 나와있는 명령어를 입력해보자.
wget -O- https://apt.corretto.aws/corretto.key | sudo apt-key add - sudo add-apt-repository 'deb https://apt.corretto.aws stable main' sudo apt-get update; sudo apt-get install -y java-17-amazon-corretto-jdk java --version
으로 버전이 잘 나오면 성공이다.
자바 버전이 2개라면 선택하는 방법
https://freedeveloper.tistory.com/347
[ubuntu] 설치되어 있는 JAVA 버전 변경
ZULU JDK 설치 방법은 아래글 참조 https://freedeveloper.tistory.com/200?category=877244 [Linux] Ubuntu, CentOS Zulu JDK14 설치하는 방법 CentOS 저장소 등록 rpm --import http://repos.azulsystems.com/RPM-GPG-KEY-azulsystems curl -o /etc/yu
freedeveloper.tistory.com
sudo update-alternatives --config java
이 명령어로 선택가능하다고 한다.
자바 18 설치
https://docs.aws.amazon.com/corretto/latest/corretto-18-ug/generic-linux-install.html
Amazon Corretto 18 Installation Instructions for Debian-Based, RPM-Based and Alpine Linux Distributions - Amazon Corretto 18
Amazon Corretto 18 Installation Instructions for Debian-Based, RPM-Based and Alpine Linux Distributions This topic describes how to install Amazon Corretto 18 on Debian-based, RPM-based and Alpine Linux distributions. Install Amazon Corretto 18 on Debian-B
docs.aws.amazon.com
'꿀팁' 카테고리의 다른 글
ubuntu 20.04 sudo su 가 안될때 (0) 2023.04.18 폐쇄망에서 mysql 설치하기 (0) 2023.04.06 gradle 로 다운받은 dependency 들을 전부 다른 폴더로 다운받는 방법 (0) 2023.02.27