프론트엔드 개발자의 개발 놀이터

MacOS MongoDB 설치 및 설정 본문

MongoDB

MacOS MongoDB 설치 및 설정

프론트포텐 2024. 2. 2. 13:24
반응형

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

 

Homebrew Tap 등록

brew tap mongodb/brew

MongoDB 설치

brew install mongodb-community

MongoDB 버전 확인

mongo -version

MongoDB 데이터 저장소 생성

sudo mkdir -p /Users/$(whoami)/data/db

MongoDB 서비스 실행

brew services start mongodb-community

MongoDB 서비스 종료

brew services stop mongodb-community

 

MongoDB 상태 확인

brew services list

 

MongoDB 기본 포트 확인

lsof -i:27017

 

MongoDB 서버 실행

sudo mongod --dbpath data/db

 

MongoDB 명령어 프롬프트 접속

mongo

'MongoDB' 카테고리의 다른 글

MongoDB와 NodeJS 연동하기  (0) 2024.02.02
MongoDB 문법  (0) 2024.02.02