1. 저장소 업데이트
apt update && apt upgrade
2. 아파치 설치
apt install apache2
service apache2 start
3. postgresql 설치
apt install postgresql postgresql-contrib
psql --version
service postgresql start
4. nodejs npm 설치
apt update
apt install nodejs npm
node -v
5. node 서버를 띄울 계정으로 로그인 후 - nvm 설치
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
source ~/.bashrc
6. node 최신 목록 조회
nvm list-remote
7. 원하는 버전으로 선택하여 설치 (위 목록에서 선택 : 아래는 v20.18.0 로 선택할 경우)
nvm install v20.18.0
끝.