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
Prerequisites
Installation
Install MongoDB on Mac. This is the first tutorial in MongoDB series and we will learn how to install MongoDB on Mac OS X. For this tutorial, I am using following softwares: Max OS X 10.12.6; MongoDB Server 3.4.7 that you can download from MongoDB Downloads Page; Follow below commands in order to install MongoDB and start it. Download MongoDB. Get MongoDB from official website, extracts it: $ cd /Download $ tar xzf.
Following steps are used to install MongoDB on MacOS.
1) Update homebrew installer package
To get started with the installation of MongoDB on MacOS, we need to update the repository index of Homebrew package Installer. This will be done with the following command.
2) Install MongoDB
After updating the repository index, we need to install MongoDB which will be done with the help of homebrew installer. It simply installs the MongoDB on location /usr/local/Cellar/mongodb
3) Start MongoDB
To start MongoDB, we need to run the following command.
4) Working on command line
The MongoDB shell can be accessed by running the file named as mongo which is a executable script located inside the bin folder under installation directory.
To create database, we use following command on the MongoDB shell.
5) Stop database
To stop database, we have to specify unload option with the launchctl command as follows:
Well, we have installed MongoDB version 3.4.9 successfully on our MacOS.
In this post we will see How to install MongoDB on Mac OS X. MongoDB is one of the most used, open-source document database, and NoSQL database. MongoDB is developed by 10gen.
STEP 1 â Downloading MongoDB
|
2
4
|
MongoDB starting:pid=38042port=27017dbpath=/data/db/64-bit host=codebind.local3
waiting forconnections on port27017
|
Install Mongodb
Now in
terminal 2
run the following command
Mongodb Mac Free
2
4
6
|
MongoDB shell version:3.6.1
>show dbs
admin(empty)
|
How To Install Mongodb Ubuntu
Video : How to install MongoDB on Mac OS X
Comments are closed.
Author
Write something about yourself. No need to be fancy, just an overview.
Archives
December 2020
November 2020
October 2020