Is mongodb running?

The Solution to Is mongodb running? is

check with either:

   ps -edaf | grep mongo | grep -v grep  # "ps" flags may differ on your OS


   /etc/init.d/mongodb status     # for MongoDB version < 2.6

   /etc/init.d/mongod status      # for MongoDB version >= 2.6


   service mongod status

to see if mongod is running (you need to be root to do this, or prefix everything with sudo). Please note that the 'grep' command will always also show up as a separate process.

check the log file /var/log/mongo/mongo.log to see if there are any problems reported

~ Answered on 2011-04-02 04:27:37

Most Viewed Questions: