java corretto 설치하기
2020. 11. 3. 15:34ㆍLinux
728x90
SMALL
- 개요
AWS JDK 배포판인 corretto의 설치 방법에 대해 정리 했다.
- 리눅스에 설치
# yum -y remove jdk && yum install -y java-1.8.0-amazon-corretto-devel java-1.8.0-amazon-corretto
# java -version
openjdk version "1.8.0_212"
OpenJDK Runtime Environment Corretto-8.212.04.2 (build 1.8.0_212-b04)
OpenJDK 64-Bit Server VM Corretto-8.212.04.2 (build 25.212-b04, mixed mode)
# /var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/_usr_local_src/bin/mvn -v
Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555; 2019-04-05T04:00:29+09:00)
Maven home: /var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/_usr_local_src
Java version: 1.8.0_212, vendor: Amazon.com Inc., runtime: /usr/lib/jvm/java-1.8.0-amazon-corretto/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.14.133-113.105.amzn2.x86_64", arch: "amd64", family: "unix"
# alternatives --config java
There are 2 programs which provide 'java'.
Selection Command
-----------------------------------------------
* 1 /usr/lib/jvm/java-1.8.0-amazon-corretto/jre/bin/java
+ 2 /usr/lib/jvm/java-1.8.0-amazon-corretto.x86_64/jre/bin/java
Enter to keep the current selection[+], or type selection number:
- jenkins에 설치
Manage Jenkins -> Global Tool configuration -> JDK -> Add JDK -> uncheck Install automatically
-> Name : JAVA_HOME , JAVA_HOME : /usr/lib/jvm/java-1.8.0-amazon-corretto.x86_64
Apply -> Save
- 참고
https://docs.aws.amazon.com/ko_kr/corretto/latest/corretto-8-ug/amazon-linux-install.html https://docs.aws.amazon.com/ko_kr/corretto/latest/corretto-8-ug/downloads-list.html
728x90
LIST
'Linux' 카테고리의 다른 글
did not find expected '-' indicator (0) | 2023.08.04 |
---|---|
WSL에서 docker 자동 시작 (0) | 2023.03.24 |
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist (0) | 2023.01.03 |
linux messages에 dhclient log flooding (0) | 2020.11.03 |
linux messages에 systemd: Started Session 과점유 현상 (0) | 2020.11.03 |