问题描述:

about to fork child process, waiting until server is ready for connections.
forked process: 27280
ERROR: child process failed, exited with error number 1
To see additional information in this output, start without the “–fork” option.

ERROR: child process failed, exited with error number 51
ERROR: child process failed, exited with error number 100


原因分析:

yum update使mongo未正常关闭,重启报错


解决方案:

网上的大部分说使用了kill -9 PID杀掉,mongod 被锁。

删除 mongod.lock 文件和日志文件 mongodb.log ,如果有必要把 log日志全部删除

mongod --repair --dbpath /data/db / --repairpath /tmp/mongodb

我这边最终找出原因是
因为配置文件中的路径目录权限不够导致的,给启动用户权限就可。
我觉得大部分可能是配置文件路径的问题,要么不存在路径了,要么没有权限。

更多推荐

ERROR: child process failed, exited with error number 1