게스트 OS에 환경 구축할 때 /usr/local jdk를 깔아야 한다.

파일질라를 이용해 공유폴더의 /usr/local 폴더에 압축 파일들을 옮긴다.

https://openjdk.org/

 

OpenJDK

Learn about the key active Projects in the Community including Amber (high-productivity language features), Loom (lightweight concurrency), Panama (foreign functions and foreign data), Valhalla (primitive types and specialized generics), and, of course, th

openjdk.org

 

👉 JDK 압축파일 이동하기 

위 링크에서 다운받은 압축파일을 /usr/local 디텍토리 밑으로 옮긴다.

 

👉 압축풀기

원격 프로그램 putty에서 다음 명령어를 실행해준다.

tar -zxvf openjdk-8u41-b04-linux-x64-14_jan_2020.tar.gz

 

👉 환경변수

✒️  vi /etc/profile : vi 에디터를 이용하여 환경변수를 설정하기 위해 아래 문구를 기입한다.

export JAVA_HOME=/usr/local/java-se-8u41-ri
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=$CLASSPATH:$JAVA_HOME/jre/lib/ext:$JAVA_HOME/lib/tools.jar

 

✒️ source /etc/profile : 변경된 환경설정 적용

 

✒️  java -version : 자바버전 확인

 

'운영체제(OS) > centOS' 카테고리의 다른 글

centOS7 Jenkins 설치  (0) 2023.05.08
centOS7 TOMCAT 설치 및 실행  (0) 2023.05.08
centOS7 mariaDB 설치하기  (0) 2023.05.08
centOS7 docker 설치 및 실행하기  (0) 2023.05.08
centOS7 사용자 계정 추가하기  (0) 2023.05.08

+ Recent posts