개발/서버

[AWS] 개인 사이트를 위한 ec2 최초 설정

옐이 2017. 2. 23. 00:33

Services -> EC2(Elastic Computer Cloud)  -> Instances


인스턴스: 서버 하나하나를 지칭


----

인스턴스 만들기


Launch Instance

Amazon Instance AMI(64bit) 선택

Instance Type은 성능을 결정함. 여기에서 무료인 t2.micro(free tier eligible) 선택

Launch and Review


key 없으면 key pair 생성 후 다운로드.

view instance


---

이름 입력

instance status가 running이면 정상

instance reboot은 재부팅 terminate는 제거


---

보안설정

해당 인스턴스의 description에서 security group의 view rule

보안규칙 확인가능


왼쪽 메뉴에서 security group클릭

리스트 중 방금 만든거 클릭

아래 inbound 탭클릭

edit

add rule

type - custom tcp rule

port range - 3000

source - anywhere

save



----

key pair

chmod 400 keypair.pem



---

node, npm 설치

sudo yum install nodejs npm --enablerepo=epel