Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (47.6k points)

I am using Mac Lion. I was using mongodb version 1.4. I wanted to upgrade to 1.8.5 I followed http://shiftcommathree.com/articles/how-to-install-mongodb-on-os-x stepwise replacing each mongodb-Osx-x86_64-1.4.0 by mongodb-Osx-x86_64-1.8.5. everything goes smooth. I tried:

mongod

its ok. I can access localhost:28017 but,

mongo

shows command not found

how I can I fix this

2 Answers

0 votes
by (106k points)

To get rid of this problem you need to add the path to "mongo" to your terminal shell.

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

0 votes
by (107k points)

1st step: Go to your [mongodb installation dir]:

cd <mongodb installation dir>

2nd step: Type ./bin/mongo to start mongo:

./bin/mongo

Related questions

0 votes
2 answers
asked Oct 16, 2019 in Web Technology by Sammy (47.6k points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Oct 18, 2019 in Web Technology by Sammy (47.6k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...