当前位置:网站首页>MongoDB启动报错 ERROR: child process failed, exited with 1
MongoDB启动报错 ERROR: child process failed, exited with 1
2022-07-19 09:34:00 【新征程,再出发】
1、启动报错
ERROR: child process failed, exited with 1
2、报错的原因
使用kill关闭进程导致的错误
3、解决
3.1、进入data中的目录,删除lock后缀的文件
3.2、修复数据
/usr/local/mongodb/bin/mongod --repair -- dbpath=/mongodb/replica_sets/myrs_27017/data/db
3.3、 再次启动
/usr/local/mongodb/bin/mongod -f /mongodb/replica_sets/myrs_27017/mongod.conf
4、未解决,再次报错,查看日志文件
4.1、我的日志文件位置
4.2、查看原因
cat mongod.log
我的报错是忘记创建一个文件
4.3、创建文件后继续启动,启动成功
结束!
心似白云常自在,意如流水任东西。
边栏推荐
- Unity practical problems webgl problem collection part 2
- C leetcode notes 5-dynamic sum of one-dimensional array
- 性能提升30倍丨基于 DolphinDB 的 mytt 指标库实现
- 浏览器调试
- 初步了解Panda3D 雾(Fog)
- 十大券商开户注册账号有没有风险的?安全吗?
- 关于部署ogg 微服务的一些疑问
- 早期肺结核检测
- 1305_ Basic queue function description of FreeRTOS
- OpenHarmony littlefs文件系统存储结构与IO性能优化分析
猜你喜欢
Error when idea connects H2 database
Is it really possible to make reports with zero coding?
Vite 入门
Find - b+ tree
0055 PHP语言简介和HelloWorld
为什么独立站卖家喜欢做电子邮件营销?原来转化率能提高这么多!
Discussion on segment tree · number of ordinary segments | number of multiplicative segments | chairman tree
Develop those things: how to solve the memory leak in the conversion between go and C type?
Impala of CDH
PyG教程(8):计算更高效的稀疏矩阵形式
随机推荐
Is there any risk for the top ten securities companies to open accounts and register accounts? Is it safe?
Panda3D绘制立方体
如何进行「小步重构」?
构建工具
Docker installs common software MySQL
2022-07-18:以下go语言代码输出什么?A:Groutine;B:Main;C:Goroutine;D:GoroutineMain。 package m
QIODevice
早期肺结核检测
A go interview question about defer understanding
Browser debugging
Paper reading: linknet: expanding encoder representations foreefficient semantic segmentation
Wechat applet_ 18. Communication between parent and child components
The SQL seen here will be truncated. Is there any way to see the complete SQL?
How to deal with repeated consumption of MySQL data read by Flink
0055 PHP语言简介和HelloWorld
STM32+BH1750光敏传感器获取光照强度
PyG教程(8):计算更高效的稀疏矩阵形式
直播短视频源码——直播短视频源码的开发步骤顺序五步走
开发那些事儿:Go与C类型转换出现内存泄漏该如何解决?
How to implement dynamic submission of SQL jobs and control of startup and shutdown?