Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
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 stepwise replacing each mongodb-Osx-x86_64-1.4.0 by mongodb-Osx-x86_64-1.8.5. everything goes smooth. I tried:


its ok. I can access localhost:28017 but,


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 (108k points)

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

cd <mongodb installation dir>

2nd step: Type ./bin/mongo to start 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)
Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers


94.1k users

Browse Categories