mongoDB非正常关闭后无法启动问题

来源:未知 责任编辑:责任编辑 发表时间:2013-11-17 14:41 点击:

前段时间不小心非正常关闭了mongoDB,准备重启却发现不行,错误信息如下:
 
01
Tue Apr 17 11:13:30
02  www.2cto.com  
Tue Apr 17 11:13:30 warning: 32-bit servers don't have journaling enabled by default. Please use --journal if you want durability.
03
Tue Apr 17 11:13:30
04
Tue Apr 17 11:13:30 [initandlisten] MongoDB starting : pid=7128 port=27017 dbpath=D:\Programs\mongodb204\db 32-bit host=FALCON
05
Tue Apr 17 11:13:30 [initandlisten]
06
Tue Apr 17 11:13:30 [initandlisten] ** NOTE: when using MongoDB 32 bit, you are limited to about 2 gigabytes of data
07
Tue Apr 17 11:13:30 [initandlisten] **       see http://blog.mongodb.org/post/137788967/32-bit-limitations
08
Tue Apr 17 11:13:30 [initandlisten] **       with --journal, the limit is lower
09
Tue Apr 17 11:13:30 [initandlisten]
10
Tue Apr 17 11:13:30 [initandlisten] db version v2.0.4, pdfile version 4.5
11  www.2cto.com  
Tue Apr 17 11:13:30 [initandlisten] git version: 329f3c47fe8136c03392c8f0e548506cb21f8ebf
12
Tue Apr 17 11:13:30 [initandlisten] build info: windows sys.getwindowsversion(major=6, minor=0, build=6002, platform=2, service_pack='Service Pack 2')BOOST_LIB_VERSION=1_42
13
Tue Apr 17 11:13:30 [initandlisten] options: { dbpath: "D:\Programs\mongodb204\db" }
14
**************
15
Unclean shutdown detected.
16
Please visit http://dochub.mongodb.org/core/repair for recovery instructions.
17
*************
18
Tue Apr 17 11:13:30 [initandlisten] exception in initAndListen: 12596 old lock file, terminating
19
Tue Apr 17 11:13:30 dbexit:
20
Tue Apr 17 11:13:30 [initandlisten] shutdown: going to close listening sockets...
21
Tue Apr 17 11:13:30 [initandlisten] shutdown: going to flush diaglog...
22
Tue Apr 17 11:13:30 [initandlisten] shutdown: going to close sockets...
23  www.2cto.com  
Tue Apr 17 11:13:30 [initandlisten] shutdown: waiting for fs preallocator...
24
Tue Apr 17 11:13:30 [initandlisten] shutdown: closing all files...
25
Tue Apr 17 11:13:30 [initandlisten] closeAllFiles() finished
26
Tue Apr 17 11:13:30 dbexit: really exiting now
 
解决方法:
 
1、删除%MONGO_HOME%/db下的.lock文件
 
2、输入命令 mongod --repair
 
3、重启mongoDB
 
 
 
作者 在云端-看世间变幻
    发表评论
    请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
    用户名: 验证码:点击我更换图片
    最新评论 更多>>

    推荐热点

    • Request.ServerVariables 参数大全
    • 执行全文索引时出现权限不足的解决方法
    • 导入excel文件处理流程节点的解决方案
    • 查看sql修改痕迹(SQL Change Tracking on Table)
    • MongoDB安装为Windows服务方法与注意事项
    • App数据层设计及云存储使用指南
    • PostgreSQL启动过程中的那些事三:加载GUC参数
    • 写给MongoDB开发者的50条建议Tip1
    • Percolator与分布式事务思考(二)
    网站首页 - 友情链接 - 网站地图 - TAG标签 - RSS订阅 - 内容搜索
    Copyright © 2008-2015 计算机技术学习交流网. 版权所有

    豫ICP备11007008号-1