Published on January 6, 2018 by ProgrammingKnowledge

Find all command in detail here – www.codebind.com/mongodb/install-mongodb-mac-os-x/
In this video 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.

$ cd ~/Download
$ tar xzf mongodb-osx-x86_64-2.2.3.tgz
$ sudo mv mongodb-osx-x86_64-2.2.3 /usr/local/mongodb

create MongoDB Data directory
$ sudo mkdir -p /data/db
$ whoami
codebind
$ sudo chown codebind /data/db

Set mongodb/bin to $PATH
$ cd
$ pwd
/Users/codebind
$ touch .bash_profile
$ open .bash_profile

export MONGO_PATH=/usr/local/mongodb
export PATH=$PATH:$MONGO_PATH/bin

————————-Follow——————-
My Website – www.codebind.com
My Blog – goo.gl/Nd2pFn
My Facebook Page – goo.gl/eLp2cQ
Google+ – goo.gl/lvC5FX
Twitter – twitter.com/ProgrammingKnow
Pinterest – goo.gl/kCInUp
Text Case Converter – goo.gl/pVpcwL
Epoch Timestamp Converter – goo.gl/Zedjo5
Decimal – Binary – Hexadecimal Converter – goo.gl/rkX3JE
8-bit Checksum Calculator – goo.gl/inxvIT
————————-Stuff I use to make videos ——————-
Stuff I use to make videos
Windows notebook – amzn.to/2zcXPyF
Apple MacBook Pro – amzn.to/2BTJBZ7
Desktop – amzn.to/2zct252
Microphone – amzn.to/2zcYbW1
notebook mouse – amzn.to/2BVs4Q3

Leave a Reply

35 Comments on "How to install MongoDB on Mac OS X"

Notify of
avatar

Steve Dawes
Guest
Steve Dawes
5 days 12 hours ago

Thanks for this, the tutorial really cleared up some of the confusion I had after reading through the official mongo tutorial. Really helpful and now it works for me.

Anuj Dubey
Guest
Anuj Dubey
12 days 49 minutes ago

Thank You It saved my lots of time. and they way you have described is awesome thank You.

Himanshu Pandey
Guest
Himanshu Pandey
16 days 19 hours ago

Borther Mac Airbook MongoDB php Driver install ka video bnao Xampp

Abdul Manan
Guest
Abdul Manan
16 days 23 hours ago

long story short if you have brew just run in terminal brew install mongodb

XJ Liu
Guest
XJ Liu
18 days 16 minutes ago

thanks, really useful.😄

CraZayTube
Guest
CraZayTube
18 days 16 hours ago

i love you bruh!

Joe Amodeo
Guest
Joe Amodeo
19 days 13 hours ago

did you put the /data/db folder INSIDE the mongodb folder???also i cant find a folder called /usr/local is that something you created??? or is it just an ad lib for any folder of your chosing… i put mine on the desktop… will that not work or something???

Japan青木
Guest
Japan青木
19 days 19 hours ago

thank you so much

Shashank CG
Guest
Shashank CG
24 days 6 hours ago

open .bash_profile command open finer-userid-.bash_profile directory, not open file

Mohammad Faisal
Guest
Mohammad Faisal
28 days 4 hours ago

Thank you very helpful content

1 2 3 4
wpDiscuz