Breaking

Monday, 28 May 2018

mongod dead but subsys locked in aws linux [solution]

hi there

who are all new to Linux and started working with AWS may have so many Q and A 's . As same like here one example in mongoDB.

MongoDB not running !!!




$service mongod status

mongod dead but subsys locked



Solution:

Go to the directory

cd /var/lib/mongo

Delete the file named mongod.lock


$sudo rm mongod.lock





Then you have to restart the mongoDB


$ sudo service mongod restart






Done! Enjoy!

No comments:

Post a Comment