加入收藏 | 设为首页 | 会员中心 | 我要投稿 济南站长网 (https://www.0531zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 系统 > 正文

Mongodb中常见错误你碰见过吗?怎样解决呢?

发布时间:2022-04-26 09:39:07 所属栏目:系统 来源:互联网
导读:这篇文章主要给大家分享几个Mongodb中常见错误以及解决方法,有需要的朋友可以参考,希望大家阅读完这篇文章能有所收获,下面我们一起来了解看看吧。 2015-05-12T09:30:26.313+0800 I STORAGE [initandlisten] exception in initAndListen: 28574 Cannot sta
        这篇文章主要给大家分享几个Mongodb中常见错误以及解决方法,有需要的朋友可以参考,希望大家阅读完这篇文章能有所收获,下面我们一起来了解看看吧。
 
2015-05-12T09:30:26.313+0800 I STORAGE [initandlisten] exception in initAndListen: 28574 Cannot start server. Detected data files in /root/Desktop/mongodb/data created by storage engine 'mmapv1'. The configured storage engine is 'wiredTiger'., terminating
2015-05-12T09:30:26.313+0800 I CONTROL [initandlisten] dbexit: rc: 100
2015-05-12T09:31:53.043+0800 I CONTROL ***** SERVER RESTARTED *****
2015-05-12T09:31:53.049+0800 I STORAGE [initandlisten] exception in initAndListen: 28574 Cannot start server. Detected data files in /root/Desktop/mongodb/data created by storage engine 'mmapv1'. The configured storage engine is 'wiredTiger'., terminating
2015-05-12T09:31:53.050+0800 I CONTROL [initandlisten] dbexit: rc: 100
 
    补充一下:如果存储空间满了的话也会出现 rc:100错误。总线一下:rc:100是系统文件错误
 
    错误原因: 之前使用mmapv1创建的数据库不能使用wiredTiger打开,需要重新指定dbpath
 
[root@localhost Desktop]# Python mongodb.py
about to fork child process, waiting until server is ready for connections.
about to fork child process, waiting until server is ready for connections.
forked process: 36411
forked process: 36412
about to fork child process, waiting until server is ready for connections.
forked process: 36414
ERROR: child process failed, exited with error number 100
ERROR: child process failed, exited with error number 100
ERROR: child process failed, exited with error number 100
 
    错误原因: mongodb非正常关闭 删除mongod.lock文件即可.
 
    ERROR: child process failed ,exited with error number 1
 
    错误原因: dbpath文件的权限问题,增加写权限即可
 
    mongodb.conf bind 不能写127.0.0.1否则其它主机连接不了
 
    情况不唯一,这边只能当参考,大致就是这么几种解决思路
 
    前今天装了MongoDB后,今天早上启动服务的时候启动不了了,出现错误如下:
 
    思考过程:
 
    昨天做测试的时候,先后安装了两次MongoDB,后来我又删除(注意不是卸载)了一个MongoDB文件夹,当前这个服务是不是默认的MongoDB的安装地址错误呢?
 
    查看服务属性,Mongo的地址是已经删除了的个地址,而不是当前我用的这个地址。当前用的地址是:E:Program filesmongodbbin

(编辑:济南站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读