๐Ÿค ์€์ง€log ๐Ÿค

[CI/CD study] - 3. AWS EC2 ์ธ์Šคํ„ด์Šค JAVA์„ค์น˜ ๋ณธ๋ฌธ

๐Ÿ’š DevOps

[CI/CD study] - 3. AWS EC2 ์ธ์Šคํ„ด์Šค JAVA์„ค์น˜

Eun_zii 2022. 10. 4. 12:31

 

 

[CI/CD study] - 2. SSH Client Tool์„ ์ด์šฉํ•ด EC2 ์ธ์Šคํ„ด์Šค ์ ‘์†

[CI/CD study] - 1. AWS EC2 ์ธ์Šคํ„ด์Šค ์ƒ์„ฑ AWS ๊ฐ€์ž… : https://aws.amazon.com/ko/ ํด๋ผ์šฐ๋“œ ์„œ๋น„์Šค | ํด๋ผ์šฐ๋“œ ์ปดํ“จํŒ… ์†”๋ฃจ์…˜| Amazon Web Services ๊ฐœ๋ฐœ์ž, ๋ฐ์ดํ„ฐ ์‚ฌ์ด์–ธํ‹ฐ์ŠคํŠธ, ์†”๋ฃจ์…˜์Šค ์•„ํ‚คํ…ํŠธ ๋˜๋Š” AWS์—..

eun-jii.tistory.com

 

 

 

 โŒจ๏ธ sudo yum update -y 

* ์ตœ์ดˆ yum Repository๋ฅผ ์ตœ์‹ ํ™” ํ•˜๊ธฐ

 

โŒจ๏ธ yum list java*jdk-devel

* ์„ค์น˜๊ฐ€๋Šฅํ•œ JAVA๋ชฉ๋ก์„ ํ™•์ธ - 1.8์ด์ƒ์˜ ํ•ญ๋ชฉ์ด ์—†๊ธฐ๋•Œ๋ฌธ์— AWS์—์„œ ์ œ๊ณตํ•˜๋Š” jdk 11 ver์„ ๋ฐ›๊ธฐ

 


โŒจ๏ธ sudo curl -L https://corretto.aws/downloads/latest/amazon-corretto-11-x64-linux-jdk.rpm -o aws_corretto_jdk11.rpm 

 


โŒจ๏ธ sudo yum localinstall aws_corretto_jdk11.rpm

-y

 


โŒจ๏ธ java -version 

 

 

โŒจ๏ธ sudo /usr/sbin/alternatives --config java

* ์„œ๋ฒ„์— ์„ค์น˜ ๋˜์–ด์žˆ๋Š” JAVA ์ค‘ ์›ํ•˜๋Š” JAVA๋ฅผ ์„ ํƒํ• ์ˆ˜ ์žˆ๋Š” ๋ช…๋ น์–ด

- ์„ ํƒ์ง€๊ฐ€ ํ•˜๋‚˜๋ฟ์ด๋ฏ€๋กœ ์—”ํ„ฐ

 

โŒจ๏ธ rm -rf aws_corretto_jdk11.rpm 

* ๋‚ด๋ ค๋ฐ›์€ jdk file์„ ์‚ญ์ œ

 

 

โค๏ธ ๋„์›€์ฃผ์‹ ๋ถ„ : 

https://junyharang.tistory.com/339 

https://code00.tistory.com/

728x90