问答详情
源自:2-1 MongoDB5.x 开发环境安装部署

老师,启动mongod的时候报错

about to fork child process, waiting until server is ready for connections.

forked process: 17607

ERROR: child process failed, exited with 1

To see additional information in this output, start without the "--fork" option.


提问者:Dreamer1017 2023-03-26 11:39

个回答

  • dudu0101
    2023-03-26 21:16:13
    已采纳

    删除mongodb 的db目录下的mongod.lock文件,重启mongodb即可。该文件会生成在日志文件下(跟bin目录同级),cd 日志文件后 rm指令删除mongod.lock文件