brew tap mongodb/brew
brew update
brew install mongodb-community@5.0
이때, 오류문이 발생하면 (내가 그랬다) 맥의 경우 개발자코드와 gcc(?) 등을 안내된 절차에 맞게 설치해주자.
brew services start mongodb-community@5.0
brew services stop mongodb-community@5.0
mongosh