[Linux] JDK설치 (jdk8, jdk11) - Amazone linux2
jdk8 install sudo yum install -y java-1.8.0-openjdk-devel.x86_64 sudo /usr/sbin/alternatives --config java sudo yum remove java-1.7.0-openjdk -y java -version jdk11 install ## headless sudo yum install java-11-amazon-corretto-headless ## full sudo yum install java-11-amazon-corretto ## confirm sudo alternatives --config java ## 참고 yum 설치 목록 확인 yum list installed