AWS 인프라 구축 가이드 (p13~25)
[인스턴스 시작] 버튼 클릭
Bitvise SSH client를 이용한 SSH 접속
VPC
nvm(Node Version Manager) 설치 스크립트를 가져와서 실행(설치)
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 12819 100 12819 0 0 596k 0 --:--:-- --:--:-- --:--:-- 596k
=> Downloading nvm as script to '/home/ec2-user/.nvm'
=> Appending nvm source string to /home/ec2-user/.bashrc
=> Appending bash_completion source string to /home/ec2-user/.bashrc
=> Close and reopen your terminal to start using nvm or run the following to use it now:
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
nvm.sh 등록
. ~/.nvm/nvm.sh
.
-> source 명령어를 의미 (환경 변수를 변경할 때 사용).
-> 숨김 파일/디렉터리.
-> 파일명과 확장자를 구분하는 구분자10.13.0 버전의 node.js를 설치
nvm install 10.13.0
Downloading and installing node v10.13.0...
Downloading https://nodejs.org/dist/v10.13.0/node-v10.13.0-linux-x64.tar.xz...
############################################################################################# 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v10.13.0 (npm v6.4.1)
Creating default alias: default -> 10.13.0 (-> v10.13.0)
node.js 설치 확인
node -e "console.log('Running Node.js ' + process.version)"
Running Node.js v10.13.0