about to fork child process, waiting until server is ready for connections.
forked process: 12233
ERROR: child process failed, exited with error number 51
To see additional information in this output, start without the "--fork" option.
mongodb4.0.13分片集群报child process failed, exited with error number 51我遇到了这个异常,百度、Google一波,面向搜索引擎编程,得到的结果是这个异常大部分是因为mongodb 服务的不正常关闭,导致mongod 被锁;解决办法:1、删除MongoDb安装目录下的 mongod.lock 文件 2、mongod -f xxx.conf --repair 修复
但是一顿操作后依然没有解决;后面仔细看了下To see additional information in this output, start without the "--fork" option. 它说把fork去掉可以得到详细日志;于是便 注释了这个参数,便有了下面的: