analogcoding

Backend 파트 정리 2 본문

Mini Project/OwlPost (앱)

Backend 파트 정리 2

be well 2019. 7. 21. 23:15

EC2 mongoDB로 등록하기 + Issue

1. EC2 - AWS 생성

2. ssh(key), name 등 정보 set up

3. 인바운드 설정 all traffic & anywhere 로 진행

 

4. terminal 에서 ssh -i .ssh/(KEY_NAME) ubuntu@(IP_Address) 로 EC2 에 접근

5. mongoDB 설치  docs 참조
- mongoDB docs : https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/

6. mongoDB는 관리자계정이 없어도 client로 접속이 가능 -> 권한설정이 필요

-mongoDB를 키고 admin( use admin )에서 내 계정 확인 (show users)

존재 시

존재하지 않을 시

이 후 set up / test

 

 

레퍼런스 참고 : https://pinedance.github.io/blog/2017/06/20/mongoDB-on-ubuntu

 

8.  ROBO 3T ( GUI tool )로 확인하면 AWS EC2주소로 ID 와 password 입력 후 접근, 확인 가능.

+ ROBO mongo <-> mongodb(AWS EC2 instance connect) 

https://medium.com/@setu677/how-to-connect-to-mongodb-on-aws-ec2-instance-with-robomongo-b2977b8a112f

 

'Mini Project > OwlPost (앱)' 카테고리의 다른 글

Backend 파트 정리 3  (0) 2019.07.21
Backend part 정리 1  (0) 2019.07.21
2주 프로젝트 owlPost 안드로이드 UI  (0) 2019.07.20
My part in OwlPost  (0) 2019.07.19
owlPost - flow / API / DB 구조 ,스키마  (0) 2019.07.08
Comments