링크 접속 - Install MongoDB Community Edition on macOS
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew tap mongodb/brew
brew tap mongodb/brew
zsh: command not found: brew
eval $(/opt/homebrew/bin/brew shellenv)
위 명령어를 입력하고 실행하자
터미널을 켤 때마다 homebrew가 자동으로 실행되게 하고 싶다면
vi ~/.zshrc
i
<insert>
모드 진입eval $(/opt/homebrew/bin/brew shellenv)
brew install mongodb-community@6.0
brew services start mongodb-community@6.0
brew services stop mongodb-community@6.0
brew services start mongodb-community@6.0
mongo
mongo
$ brew install mongodb-community-shell