seoft

ubuntu java gradle 설치, 환경변수 설정 본문

etc

ubuntu java gradle 설치, 환경변수 설정

seoft 2022. 12. 18. 19:36

사전 권장사항 openssh-server 설치 후 방화벽해제

 

 

ubuntu20.04lts / jdk 11 / gradle 7.4.2 기준

 

 

apt-get update

sudo apt-get install openjdk-11-jdk

 

sudo nano /etc/profile.d/java.sh

 

#/bin/bash

export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64

 

 

sudo mkdir /downloads/gradle -p

cd /downloads/gradle

sudo wget https://downloads.gradle-dn.com/distributions/gradle-7.4.2-bin.zip

cd /downloads/gradle

sudo unzip gradle-7.4.2-bin.zip -d /opt

sudo ln -s /opt/gradle-7.4.2 /opt/gradle

 

sudo nano /etc/profile.d/gradle.sh

 

#/bin/bash

export GRADLE_HOME=/opt/gradle

export PATH=/opt/gradle/bin:${PATH}

 

sudo chmod +x /etc/profile.d/gradle.sh

 

source /etc/profile.d/gradle.sh

 

 

번외 rabbit mq 안도커

Comments