A guide to show you how to install MongoDB on Mac OS X.
Robo 3T (formerly Robomongo) is the free, lightweight, open-source MongoDB GUI with an embedded mongo shell, real auto-completion, and support for MongoDB 4.0. In the previous articles, you have learned what is MongoDB and what are advantages of MongoDB over SQL. In this article, we will learn about downloading and installing MongoDB on Windows & MAC and other operating systems.
1. Download MongoDB
Get MongoDB from official website, extracts it : Dmg 11.
2. MongoDB Data
By default, MongoDB write/store data into the
/data/db folder, you need to create this folder manually and assign proper permission. Convert dmg file to iso.
Note
Permissin is required to avoid following locking error : 3. Add mongodb/bin to $PATH
Create a
~/.bash_profile file and assign /usr/local/mongodb/bin to $PATH environment variable, so that you can access Mongo’s commands easily.
4. Start MongoDB![]()
Start MongoDB with
mongod and make a simple mongo connection with mongo .
Mongodb Latest Version
Terminal 2
Note
If you don’t like the default /data/db folder, just specify an alternate path with --dbpath
5. Auto Start MongoDB
To auto start mongoDB, create a launchd job on Mac.
Puts following content : Internet explorer for mac download 2019. https://newleague327.weebly.com/blog/what-is-mac-dmg.
Download Mongodb 3.4 For Mac
Load above job.
Download Mongodb For Mac Windows 10
Try restart your Mac, MongoDB will be started automatically.
ReferencesAbout the AuthorFree Download Mongodb For MacmkyongFounder of Mkyong.com, love Java and open source stuff. Follow him on Twitter. If you like my tutorials, consider make a donation to these charities.Mongodb Community Edition DownloadCommentsComments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |