More Related Content
Similar to Ubuntu & C9(node.js) with AWS (20)
More from SeongSik Choi (13)
Ubuntu & C9(node.js) with AWS
- 2. 1. AWS 생성
• AWS 가입 및 인스턴트 생성
• 1년간 무료, 한 달에 총 750시간 무료(EC2 t2.micro만 해당)
인스턴트1개는 커버가능, 2개부터는 개당 750/2 시간 무료 그 이상은
과금
- 6. 1-3. AWS 설정_SSH접속(터미널)
① $ cd ~/.ssh
② $ cp 'pem파일을 다운로드 받은 디렉터리와 파일명' ./
③ $ chmod 400 xxxxxx.pem
④ $ ssh -i xxxxxxxx.pem ubuntu@xxx.xxx.xxx.xxx
- 7. 2. Ubuntu 설정
① $ sudo apt-get update
패키지 업데이트1
② $ sudo apt-get upgrade
패키지 업데이트2
- 8. 3. Node.js 설치
① $ sudo apt-get install g++ curl libssl-dev apache2-utils git-core
make automake autoconf
node.js 빌드를 위한기본적인 SW설치
② $ curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
node.js 7.x 설치과정 1
③ $ sudo apt-get install –y nodejs
node.js 설치과정 2
④ $ node –v
버전확인하기
- 9. 4. C9 설치
① $ apt-get install build-essential
gcc 등등
② $ sudo apt-get install python-setuptools
python 2.7+ 설치
③ $ git clone https://github.com/c9/core.git c9sdk
④ $ c9sdk/scripts/install-sdk.sh
- 10. 4. C9 설치
⑤ $ screen sudo node c9sdk/server.js -p 80 -a ID:PW
80번포트로 C9페이지 사용하도록하기, 해당페이지 접속시 사용할 아이디와 비밀번호
도 입력
⑥ $ ctrl+a+d
detached – 터미널을 종료해도 계속 실행
*screen이 아닌 background에서 실행하기([no hang up] nohup)
$ nohup sudo node c9sdk/server.js -p 3000 -w
/home/ubuntu/project -a ID:PW &
-p 포트번호, -w 경로, –a ID:PW, & 백그라운드
- 11. 참고
• 날개의 노트(Wing’s Note)
http://wingsnote.com/53
• 웃는아이 Karoid - AWS에 C9 Rails server 만들기
http://itncode.tistory.com/45