본문 바로가기
DB/MongoDB

M1 mac mongoDB 설치하기

by 코딩하는보기 2023. 6. 5.
728x90
반응형

homebrew가 설치되어있다는 가정 하에 진행한다

설치가 되어있지 않다면

https://code-boki.tistory.com/116

 

Mac CLI package tool HomeBrew 설치하기

https://brew.sh/index_ko Homebrew The Missing Package Manager for macOS (or Linux). brew.sh 위에 사이트에 들어가보면 터미널에 붙여넣기 하세요 라고 나와있다 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/in

code-boki.tistory.com

 

homebrew로 mongodb 설치하기

brew tap mongodb/brew

brew update

brew install mongodb-community

brew services start mongodb-community

brew services list

혹시라도 설치나 실행 도중 문제가 생긴다면

brew install mongodb-community@5.0

brew services start mongodb-community@5.0

로 버전을 바꿔서 설치하면 된다

현재 mongodb-community와 mysql, postgresql을 실행중이다..

이제 몽고디비 서비스를 실행했으니 명령어를 입력해보자

mongosh

현재 실행중인 몽고디비의 버전은 6버전이다

나오는 명령어는 quit

 

728x90
반응형

'DB > MongoDB' 카테고리의 다른 글

MongoDB Compass Download for M1 Mac  (0) 2023.06.05

댓글