brew install mongodb
mkdir -p /data/dbEnsure that user account running mongod has correct permissions for the directory:
| 1. Install Xcode, if you haven't already. | |
| a. Once installed, run Xcode and accept the license agreement. | |
| b. Go into Xcode Prefs (Cmd + ,), go to Downloads, and install "Command Line Tools for Xcode" (or something named similarily) | |
| 2. Install Homebrew (copy and paste the following into your terminal): | |
| ```bash | |
| ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" |