티스토리 뷰

원문은 아래 링크를 참고하세요.

https://github.com/mongodb/homebrew-brew

 

mongodb/homebrew-brew

The Official MongoDB Software Homebrew Tap. Contribute to mongodb/homebrew-brew development by creating an account on GitHub.

github.com

 

1. homebrew가 설치 안되어 있다면 먼저 설치하세요. 혹은 업데이트 할 때도 아래 코드를 실행, 중간에 xcode 뭘 설치하라고 할 수도 있는데 오래 걸립니다.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

 

2. 아래 코드를 터미널에서 실행

brew tap mongodb/brew

 

3. 다시 아래 코드 실행, 몽고DB 커뮤니티 최신버전을 설치합니다.

brew install mongodb-community

 

4. 몽고DB실행

mongod --config /usr/local/etc/mongod.conf

🔼몽고DB를 백그라운드에서 실행하지 않는 명령어

brew services start mongodb-community

5. 몽고DB 접속

mongo

6. 몽고DB 정지

brew services stop mongodb-community

 

7. 몽고DB GUI 클라이언트

https://www.mongodb.com/download-center/compass

 

Download Center: Compass

MongoDB Compass, the GUI for MongoDB, is the easiest way to explore and manipulate your data. Download and use for free for development environments.

www.mongodb.com

 

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
글 보관함