Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Where does mongo install on centos? I want to remove some databases and file collections as well as uninstall it all together, can anyone help?

share|improve this question

As it inst a core package it all depends on where you told it to go when you compiled it, or where the package maintainer did.

have a look in /etc/init.d/mongodb and it should have an argument --dbpath that will tell you where the DB's are stored.

As for removing it; it really all depends how it was installed...

share|improve this answer
figured it out, had to look in /etc/mongod.conf for the stored paths, uninstalled it via the "yum" command and the removed the db directory. – user56572 Oct 13 '10 at 7:47

Mongodb uses /data to store there database on ubuntu see if database is there.

share|improve this answer

If you used the offical 10gen rpms it puts it in

share|improve this answer

The best way to discover where an application is actually installed in a unix-like OS is to run which [command], so in your case which mongod and which mongo.

The config files should be at /etc/mongodb.conf In there you should see where the database files and log files are stored.

share|improve this answer

Your Answer


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