1. homebrew를 통해 mongodb 설치

 

brew tap mongodb/brew
brew update
brew install mongodb-community@7.0

 

 

 

 

 

2. 설치 후 mongodb 실행

 

brew services start mongodb/brew/mongodb-community
brew services list

Status : started 확인

 

 

 

 

 

3. mongodb 정상 작동 확인하기

 

http://localhost:27017/

 

 아래와 같은 화면이 출력될 경우, 정상적으로 작동하는 상태입니다.

It looks like you are trying to access MongoDB over HTTP on the native driver port.

 

 

 

 

 

4. mongodb 실행 방법

 

mongo

 

 - 만약 실행되지 않고 오류가 발생한다면 아래 글을 참조합니다.

https://growingsaja.tistory.com/968

 

[SOLVED][MongoDB] MongoDB 설치 완료 직후 많이 발생하는 zsh: command not found: mongo 해결 방법

1. 작업 환경 Mac terminal homebrew를 통해 mongodb 설치 완료 2. 문제 상황 owner@Ownerui-Macmini ~ % brew services list Name Status User File mongodb-community started owner ~/Library/LaunchAgents/homebrew.mxcl.mongodb-community.plist owner@Ow

growingsaja.tistory.com

 

 

 

 

 

5. 간단한 쿼리 날려보기

 

show dbs;

 

 

 

 

 

6. MongoDB GUI 설치하기

 

https://growingsaja.tistory.com/969

 

[Mac M2][MongoDB] Compass 설치하기 (MongoDB GUI 설치하기)

1. MongoDB 공식 GUI 프로그램 Compass 설치하러 가기 https://www.mongodb.com/try/download/compass Try MongoDB Tools - Download Free Here Free download for MongoDB tools to do more with your database. MongoDB Shell, Compass, CLI for Cloud, BI Conn

growingsaja.tistory.com

 

 

 

 

 

7. 자주 사용하는 기본 쿼리 정리

 

https://growingsaja.tistory.com/970

 

 

 

 

 

5. 참조 mongodb 공식 문서

 

https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-os-x/

 

Install MongoDB Community Edition on macOS — MongoDB Manual

Docs Home → MongoDB Manual MongoDB AtlasMongoDB Atlas is a hosted MongoDB service option in the cloud which requires no installation overhead and offers a free tier to get started.Use this tutorial to install MongoDB 7.0 Community Edition on macOS using

www.mongodb.com

 

 

 

 

 

 

 

+ Recent posts