nkaoz
7/2/2015 - 10:53 PM

Install mongodb OSX

brew update
#Install the MongoDB Binaries
brew install mongodb
#Build MongoDB from Source with TLS/SSL Support
brew install mongodb --with-openssl
#Create the data directory.
mkdir -p ~/data/db
#Run MongoDB
#the first time
sudo ulimit -n 1024 && mongod --dbpath ~/data/db
#after
#sudo mongod --dbpath ~/data/db
#shell
sudo mongo