Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I tried to find this info everywhere and couldn't find it. I already change mongodb.conf so I forget where the original directory is.

share|improve this question
add comment

2 Answers 2

When you are searching a file in your filesystem while you are running Ubuntu a very easy way to find it is to do the following:

  1. Update the database with your files (may be a bit slow, depending on when it run the last time automatically from your system):

    sudo updatedb

  2. Search for the corresponding file (super quick):

    locate mongodb.conf

share|improve this answer
add comment

I'm not sure for amazon ec2 exactly but on my machine it is located at /var/lib/mongodb

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.