MongoDB: fixed not starting error

Just use these:

sudo -u mongodb mongod --repair --dbpath /var/lib/mongodb/
sudo service mongodb start

Of course change dbpath to your dbpath, this one is default.

1 comment:

You can ask IT questions in comments!