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:
#mac sudo lsof -i -P | grep 27017 #linux sudo netstat -tulpn | grep :27017
Then, kill it:
# the process id sudo kill 29618