9. MongoDB DBA Tutorials:Download and Install MongoDB on Mac

preview_player
Показать описание
#MongoDBInstall #MongoDBInstallMacOS
In this video, we explained how to download and #install #MongoDB on mac OS.

Commands used in this video are:

tar -zxvf filename
sudo mv foldername /usr/local/mongodb

sudo mkdir -p /data/db/

sudo chown r2schools /data/db/

cd ~
touch .bash_profile
vi .bash_profile

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

Now open one more terminal and type mongodb
In the first terminal type mongo

If you receive error like '-bash mongo command not found'. Then, run the below command.

export PATH=$PATH:/usr/local/mongodb/bin
Рекомендации по теме
Комментарии
Автор

Thank you! I kept getting errors and your video helped so much!!

Asti-us