-
-
Save lman/a2267b3f0cfc94dab665bb8b13821325 to your computer and use it in GitHub Desktop.
Revisions
-
nrollr revised this gist
Dec 19, 2017 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ ## Install MongoDB on macOS Sierra This procedure explains how to install [MongoDB](https://www.mongodb.org) using [Homebrew](http://brew.sh) on macOS Sierra 10.12. Official MongoDB install documentation: [here](https://docs.mongodb.org/manual/tutorial/install-mongodb-on-os-x/) @@ -35,7 +35,7 @@ Expected output : **Successfully started `mongodb` (label: homebrew.mxcl.mongodb Expected output : **db version v3.2.10** #### Comments <a name="1"><sup>1</sup></a> The `brew services start mongodb` - instruction is equal to : ``` -
nrollr created this gist
Oct 8, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,44 @@ ##Install MongoDB on macOS Sierra This procedure explains how to install [MongoDB](https://www.mongodb.org) using [Homebrew](http://brew.sh) on macOS Sierra 10.12. Official MongoDB install documentation: [here](https://docs.mongodb.org/manual/tutorial/install-mongodb-on-os-x/) ### Install Homebrew * Installing Homebrew is effortless, open Terminal and enter : `$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"` * **Note:** Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process. ### Install MongoDB At this time of writing, Homebrew has MongoDB version **3.2.10** as default formulae in its main repository : * Enter the following command : `$ brew info mongodb` * Expected output: **mongodb: stable 3.2.10 (bottled)** To install MongoDB enter : `$ brew install mongodb` ## Additional configuration ### Homebrew To load and start the MongoDB background service, open Terminal and execute the following commands : * Install **brew services** first : `$ brew tap homebrew/services` * Load and start the MongoDB service : `$ brew services start mongodb`. Expected output : **Successfully started `mongodb` (label: homebrew.mxcl.mongodb)** * Check of the MongoDB service has been loaded : `$ brew services list` <sup>[1](#1)</sup> * Verify the installed MongoDB instance : `$ mongod --version`. Expected output : **db version v3.2.10** ####Comments <a name="1"><sup>1</sup></a> The `brew services start mongodb` - instruction is equal to : ``` ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist ```