Lesson 2
Author : Mike Dane
Last Updated : December, 2017
![Download Mongodb On Mac Download Mongodb On Mac](/uploads/1/1/8/6/118629298/479246642.jpg)
Author : Mike Dane
Last Updated : December, 2017
![Macos mongodb Macos mongodb](/uploads/1/1/8/6/118629298/362118918.png)
Author : Mike Dane
Last Updated : December, 2017
Download And Install Mongodb On Mac
MongoDB: Install on MacOS In this tutorial, we present a step by step tutorial on how to install MongoDB on Mac OS. The operating system considered for this tutorial is macOS 10.14 (Mojave). How to Install MongoDB on MacOS. MongoDB is an open source, cross platform document-oriented database management system. It is a NoSQL database which stores data and schemas as JSON objects. Mongodb is developed by Mongodb Inc and is published under GNU affero General Public License and Apache. This tutorial describes the steps involved in the installation of MongoDB on MacOS.
Instructions
Download using brew
![Download Mongodb On Mac Download Mongodb On Mac](/uploads/1/1/8/6/118629298/479246642.jpg)
- Execute the following commands
- brew update
- brew install mongodbDownload the Binary
- Download MongoDB Community Server Binary
- Extract the files (double click) into the downloads folder
- I just put them at the root directory of the home folder
- Configure command line to recognize ‘mongod’ command
- echo ‘export PATH=/Users/Mike/mongodb-osx-x86_64-3.6.0/bin:$PATH’ >> ~/.bashrc
Download Compass
Configure
- Create ‘/data/db’ directory
- Create this at root directory of hard-drive
- Ensure that current user has read/write permissions
- Or customize location using:
- mongod –dbpath
- I put this at the root directory of my home folder
- Create this at root directory of hard-drive
- Start MongoDB server
- mongod
- Connect to MongoDB server from client – (in new terminal window) mongo –host localhost:27017 – (in compass) use the default settings
Author : Mike Dane
Last Updated : December, 2017
Instructions
Install Mongodb On Mac
Download using brew
![Macos mongodb Macos mongodb](/uploads/1/1/8/6/118629298/362118918.png)
Download Mongodb 3.2
- Execute the following commands
- brew update
- brew install mongodbDownload the Binary
- Download MongoDB Community Server Binary
- Extract the files (double click) into the downloads folder
- I just put them at the root directory of the home folder
- Configure command line to recognize ‘mongod’ command
- echo ‘export PATH=/Users/Mike/mongodb-osx-x86_64-3.6.0/bin:$PATH’ >> ~/.bashrc
Download Compass
Configure
- Create ‘/data/db’ directory
- Create this at root directory of hard-drive
- Ensure that current user has read/write permissions
- Or customize location using:
- mongod –dbpath
- I put this at the root directory of my home folder
- Create this at root directory of hard-drive
- Start MongoDB server
- mongod
- Connect to MongoDB server from client – (in new terminal window) mongo –host localhost:27017 – (in compass) use the default settings