Install Homebrew and after that 'homebrew install mongodb' Run mongo --version 1.Run 'mongod' in one terminal window 2.Run mongo --host localhost:27017 in another terminal window