$brew update
$brew install mongodb
启动
$mongod --config /usr/local/etc/mongod.conf
$mongo
首先进入root账户模式
$sudo -i
$passwd
然后启动上面的mongod
在浏览器上http://localhost:27017
验证信息如下:
It looks like you are trying to access MongoDB over HTTP on the native driver port.
说明可以
Mac 安装 Mongodb
猜你喜欢
转载自verytiny.iteye.com/blog/2395439
今日推荐
周排行