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)