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

when I do a top I could see mongod in the top consumers:

Gaga ramama

But I do not have mongodb installed:

Gaga oohlala

How do I remove mongod? I know I could easily do a kill 571 but it's not neat. Could this be a virus or something.

share|improve this question

closed as not a real question by womble, Mike Pennington, gWaldo, voretaq7 Nov 14 '12 at 2:14

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

It could be all sorts of things. You'll need to investigate further to find out. – womble Jul 18 '12 at 21:54
up vote 2 down vote accepted

It could be anything.

Run 'which mongod' and 'which mongo' (both as you and root) to see if they're in either's PATH.

You can try to open them in a text editor to see if they're scripts, or 'strings' on a binary file.

But honestly the simplest answer is probably the most likely; someone installed MongoDB. Check your /etc/init.d (or the Red Hat equivalent) for it's startup scripts. Check the apt/yum config to see if non-linux-distro repositories have been added. (

Many people download MongoDB from 10gen or use their hosted apt and yum repos because the distros are difficult to work with and lag behind releases.

If you don't want it installed, kill the process and remove it.

share|improve this answer
better still: updatedb; locate mongod – Mike Pennington Jul 18 '12 at 23:13

You can also use yum to identify it:

# yum whatprovides "*/bin/mongod"
Loaded plugins: downloadonly, rhnplugin, security
mongodb-server-1.6.4-1.el5.i386 : MongoDB server, sharding server and support
                                : scripts
Repo        : EPEL-i386
Matched from:
Filename    : /usr/bin/mongod

Therefore, your machine probably has mongodb-server installed. So, to be rid of mongod, you would need to use yum to remove the mongodb-server package like so:

# yum remove mongodb-server
share|improve this answer
As long as another package isn't using it. For example, katello uses mongodb, so if you are running katello, removing mongodb will try to remove katello also. rpm -q --whatrequires mongodb-server will show you what depends on it. – lsd Jul 19 '12 at 13:24
Running yum remove displays all dependenci – ZaSter Jul 21 '12 at 18:34
Running yum remove displays all dependencies and prompts you whether you actually want to to remove the packages and those packages that depend on that package. So there is no danger in running the command. – ZaSter Jul 21 '12 at 18:51

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