通过homebrew安装mongodb
首先确保已经安装homebrew
然后更新homebrew
brew update
然后安装mongodb
brew install mongodb
使用mongodb
mongo
插入数据
db.test.insert({'name':'test'})
查看数据:
db.test.find()
通过homebrew安装mongodb
首先确保已经安装homebrew
然后更新homebrew
brew update
然后安装mongodb
brew install mongodb
使用mongodb
mongo
插入数据
db.test.insert({'name':'test'})
查看数据:
db.test.find()