JAVA 설치
## 최신 패키지 목록을 업데이트
sudo apt-get update
## 최신 버전으로 업그레이드
sudo apt-get upgrade
## OpenJDK 17 JDK
sudo apt-get install openjdk-17-jdk
## 자바 버전 체크
java -version & java -version
## vim 사용하려면 설치
sudo install vim
## /etc/environment 열기
sudo vim /etc/environment
## 아래 줄을 /etc/environment 입력후, 나오는 창에 넣고 :wq
JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
## "/etc/environment" 파일에서 환경 변수들을 현재의 셸 세션으로 로드
source /etc/environment
### This command reloads the environment variables from the "/etc/environment" file into the current shell session. By sourcing the file, any changes made to the environment variables in the file will take effect in the current session.
## 확인
echo $JAVA_HOME
### After sourcing the environment file, this command prints the value of the "JAVA_HOME" variable. If the previous steps were successful, it should display "/usr/lib/jvm/java-17-openjdk-amd64".
MariaDB 설치
## MariaDB 서버를 설치
sudo apt install mariadb-server
## MariaDB 클라이언트를 설치 > MariaDB 클라이언트는 MariaDB 서버에 접속하고 데이터베이스를 관리
sudo apt install mariadb-client
## MariaDB 서비스를 재시작 > MariaDB 서버의 설정 변경 사항이 적용되거나 서버에 대한 업데이트가 완료
sudo systemctl restart mariadb.service
Git 연동
## Git 설치
Sudo apt-get install git
## git 사용자 이름 설정
git config --global user.name {username}
=> e.g) git config --global user.name heath
## git 사용자 이메일 설정
git config --global user.mail {email}
=> e.g) git config --global user.mail heath@gmail.com
## git Token을 사용하여 클론
git clone {git url} 입력시 > pw에 git token 사용