mongodb启动异常:about to fork child process, waiting until server is ready for connection


用Ctrl + C退出mongodb后再次登录出现以下的错误

mongodb启动异常:about to fork child process, waiting until server is ready for connection
我们进入mongodb的 data/db目录下
1.删除掉mongod.lock文件
2.bin目录下:./mongod --repair
3.再次重启 ./bin/mongod --config /data/mongodb.conf
但是依然是报错,没有办法正常启动。

我们使用ps aux | grep mongod命令查看mongodb的进程,用kill -9 pid杀掉进程
mongodb启动异常:about to fork child process, waiting until server is ready for connection
可是mongo的第二个进程一直在不断的刷新,没办法正常关闭掉
mongodb启动异常:about to fork child process, waiting until server is ready for connection
这是我想起来了mongodb.conf配置文件
我们将fork这个后台进程注释掉mongodb启动异常:about to fork child process, waiting until server is ready for connection
再将data/db目录下的 mongod.lock 和 diagnostic.data文件删掉,这时再重启mongodb能够完美运行
mongodb启动异常:about to fork child process, waiting until server is ready for connection
mongodb启动异常:about to fork child process, waiting until server is ready for connection

相关文章:

  • 2021-10-19
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2021-08-08
  • 2021-06-19
  • 2021-10-28
猜你喜欢
  • 2022-12-23
  • 2023-04-07
  • 2022-12-23
  • 2022-01-23
  • 2022-12-23
  • 2021-05-10
  • 2022-12-23
相关资源
相似解决方案