Mongodb cannot be started: child process failed, exited with error number 100
March 1, 2016 17:22:12sinat_ 30397435 reads 29511 article tag: mongodb
Mongodb: child process failed, exited with error number 100
cannot be started http://f.dataguru.cn/thread-107361-1-1.html
(source: refining numbers into gold)
Today, when starting mongodb, I found that I couldn’t get up and reported an error: child process failed, exited with error number 100 and then I went to/var/log/Mongo/mongod.log to check the startup log
**************
Unclean shutdown detected.
Please visithttp://dochub.mongodb.org/core/repairfor Recovery instructions.
sat APR 20 09:40:31.286 [initandlisten] exception in initandlisten: 12596 old lock file, terminating
it seems that mongodb is not closed normally. According to the prompt link to see the next, to repair the way to start<
delete mongod. Lock under/var/lib/Mongo first
and then start in repair mode:
then start once
now you can see that mongod process exists and can be used normally
so how to shut down mongodb normally
you can go to the official documents:
http://docs.mongodb.org/manual/tutorial/manage-mongodb-processes/
connect to the server through shell first:
Mongo
use admin
dB. Shutdown server ()
or kill – 15 < pid>, Note that kill – 9 may cause data file corruption