mac安装mongodb

  1. 安装或更新homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
  1. 安装mongodb
brew install mongodb
  1. 运行mongdb
sudo mkdir -p /data/db
sudo chmod a+rw /data/db
mongod     

你可能感兴趣的:(mac安装mongodb)