随手记
一、检查MongoDB是否安装
mongod -version
二、启动服务
#作为 macOS 服务运行
brew services start mongodb-community@5.0
#停止服务
brew services stop mongodb-community@5.0
#重启服务
brew services restart mongodb-community@5.0
#查看服务运行列表
brew services list
三、DataGrip连接MongoDB并查询数据