brew install mongodb-community
mkdir -p /data/db sudo chown -R marstau /data/db
mongod --dbpath /data/db
mongo
启动: brew services start mongodb-community
brew services start mongodb-community
mongo server selection error: server selection timeout, current topology