使用mongodb时常发生的几个错误

今天在配置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否则其它主机连接不了 



  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值