sudo apt update
# 필수 패키지 설치
sudo apt install -y curl wget git build-essential
# NginX 설치
sudo apt install nginx -y
# NginX 시작
sudo systemctl start nginx
# 부팅 시 자동 시작 설정
sudo systemctl enable nginx
# 상태 확인
sudo systemctl status nginx
# NodeSource 저장소 추가
curl -fsSl <https://deb.nodesource.com/setup_20.x> | sudo -E bash -
# Node.js 설치
sudo apt-get install -y nodejs
# 버전 확인
node --version
npm --version