How To Kill Your Errant Mongo Process

So you try to start mongo one morning and it wont start up? Giving some error about a lock file?

Well that’s because you didn’t shut your process down correctly silly!

It’s simple, check for a mongo process running first:

sudo lsof -i -P | grep 27017

sudo netstat -tulpn | grep :27017

Then, kill it:

# the process id
sudo kill 29618

Boom done.

Leave a Reply

Your email address will not be published. Required fields are marked *