더북(TheBook)

8.2.2

맥에서는 Homebrew를 통해 몽고디비를 설치하는 것이 좋습니다. Homebrew는 다음 명령어로 설치할 수 있습니다.

콘솔

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

Homebrew 설치를 완료한 후 Homebrew를 통해 몽고디비를 설치합니다.

콘솔

$ brew tap mongodb/brew
$ brew install mongodb-community
$ brew install mongosh

맥의 경우 /usr/local/var/mongodb에 데이터가 저장됩니다.

신간 소식 구독하기
뉴스레터에 가입하시고 이메일로 신간 소식을 받아 보세요.