where is default installation directory for mongodb

Viewed 35776

I installed mongodb by following the instructions from its site. To open the shell I must go to the installation directory of mongodb, and then type

./bin/mongo

I don't know the default directory. where might it be?

3 Answers

Late to the party but it could help others : I installed mongodb 3.4.10 for Ubuntu 16.4

I found the mongo file to launch the shell at

/usr/bin/mongo

I found it using the following commands

sudo updatedb
locate -b '\mongo'

Windows: c:\Program Files\MongoDB\Server\3.4.7\bin\mongod

Mac: /usr/local/Cellar/mongodb/3.4.7/bin/mongod

Replacing the 3.4.7 with your version of Mongodb

Related