데이터베이스/NoSQL

1. 몽고 DB 설치

https://www.mongodb.com/try/download/community-kubernetes-operator

 

Try MongoDB Community Edition

Try MongoDB Community Edition on premise non-relational database including the Community Server and Community Kubernetes Operator for your next big project!

www.mongodb.com

위 홈페이지에 들어가 Version, Platform(Windoews), Package(msi) 선택 후 다운받는다.

Data Directory는 몽고DB에서 데이터가 쌓일 경로를 의미한다.

2. 환경 변수 설정

설치 완료 후 내PC > 정보 > 고급 시스템 설정 > 고급 > 환경 변수에 들어간다.

 

시스템 변수(S)에서 Path 선택 후 편집을 누른다.

새로 만들기 선택 후 MongoDB를 설치한 경로/bin 까지의 경로를 추가한다.

 

3. MongoDB 실행

실행하기에 앞서 'MongoDB를 설치한 경로/data' 밑에 'db'폴더를 생성한다.

 

이후 cmd에 mongod 를 입력하면 아래와 같이 출력된다.

잘 실행되었다!

 

또 다른 확인 방법은

http://localhost:27017 로 들어가면 된다.

위와 같이 출력된다면 잘 실행되는 것이다.

 

 

 

 

 

MongpDB GUI 개발/관리 도구인 Studio 3T도 설치해보자!