brew tap mongodb/brew
brew install mongodb-community
mongod --version
db version v5.0.6
Build Info: {
"version": "5.0.6",
"gitVersion": "212a8dbb47f07427dae194a9c75baec1d81d9259",
"modules": [],
"allocator": "system",
"environment": {
"distarch": "x86_64",
"target_arch": "x86_64"
}
}
https://www.mongodb.com/products/compass
brew services list
起動していない状態だと以下のようになります
Name Status User File
mongodb-community none
brew services start mongodb-community
brew services stop mongodb-community