MongoDB -- Error: unclean shutdown detected

由于每次不正常关闭 MongoDB 的行为

导致今天打开 MongoDB 发现出现如下错误

unclean shutdown detected

解决方案(很详细):

http://docs.mongodb.org/manual/tutorial/recover-data-following-unexpected-shutdown/

方法1.删掉 data\db\mongo.lock 文件

然后输入 mongod --dbpath=XXX\data\db

但是删除 mongo.lock 文件后,一定要使用 --repair 恢复

方法2.输入 mongod --dbpath=XXX\data\db --repair --repairpath\data\db0

然后启用 mongod --dbpath=XXX\data\db0

MongoDB -- Error: unclean shutdown detected

时间: 2024-11-09 00:34:05

MongoDB -- Error: unclean shutdown detected的相关文章

apche启动错误|httpd.pid overwritten — Unclean shutdown of previous Apache run?

APACHE启动成功,但无法接受任何请求,查看ERROR.LOG文件[warn] pid file /opt/apache/logs/httpd.pid overwritten - Unclean shutdown of previous Apache run?大概意思是说PID文件一直被一个程序改写,我测试系统上还运行了RESIN,只要停止了就可以了 resin/bin/httpd.sh stop resin/bin/httpd.sh stop resin/bin/httpd.sh stop

XAMPP Error: MySQL shutdown unexpectedly 解决办法

早晨刚刚上班,爱的外贸建站程序员APOLLO打开电脑,准备开始今天的工作,发现打开XAMPP后,MYSQL数据库不能正常启动,出现如下错误提示 9:45:33 [mysql] Error: MySQL shutdown unexpectedly. 9:45:33 [mysql] This may be due to a blocked port, missing dependencies, 9:45:33 [mysql] improper privileges, a crash, or a sh

Solve error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2'

This error happens in Release mode of VS2010, solve this problem by do following: . Go to Project Pages / Configuration Properties / C,C++ / Preprocessor / Preprocessor Definitions. Add '_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH' Solve error LNK2038: mism

Error: No controllers detected :问题解决

1.1 HP   hpssacli 无法发现raid控制器问题解决 [[email protected] /]# hpssacli ctrl all show Error: No controllers detected. [[email protected] /]# 1)   下载相关工具及驱动 a)     http://ftp.hp.com/pub/softlib2/software1/pubsw-linux/p215599048/v100519/hpssacli-2.0-23.0.x86

An unexpected error has been detected by Java Runtime Environment

最近团队内部遇到一个非常奇怪的问题.网上有人说是sun公司的bug,我在这里贴一下,有兴趣的同志可以研究一下.据说,换一个java版本就好了,团队内部正在进行升级java版本.sun公司官网解释:https://www.java.net/node/670924程序异常error如下: # # An unexpected error has been detected by Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0

Linux挂载硬盘出错:$LogFile indicates unclean shutdown (0, 0)

前一次还挂载好好的,今天在挂载NTFS的分区就不行了,出现如下错误信息和提示: $LogFile indicates unclean shutdown (0, 0) Mount is denied because NTFS is marked to be in use. Choose one action: Choice 1: If you have Windows then disconnect the external devices by clicking on the 'Safely R

eplise中运行提示 A fatal error has been detected by the java runtime environment

今天一同事出现运行项目时,提示 A fatal error has been detected by the java runtime environment,具体表现是使用我们框架,不能正常的打印日志,截图报错为: 看这个问题,我第一反应就是jvm出了问题,且在提示中还告诉我们,失败的写入到dump,最开始怀疑他jdk,版本与电脑不匹配,但是不匹配,不至于jvm内存占满才对,在者怀疑在使用时配置的路径有问题,解决方案,在 eplise中配置jre,使用jre运行程序,提供jvm的虚拟机环境 原

xampp 启动apache 提示:Error: Apache shutdown unexpectedly.

无法启动xampp的apache提示错误: 下午 8:32:21  [Apache]       Error: Apache shutdown unexpectedly. 下午 8:32:21  [Apache]       This may be due to a blocked port, missing dependencies, 下午 8:32:21  [Apache]       improper privileges, a crash, or a shutdown by anothe

[mongoDB] error 10061由于目标服务器积极拒绝,无法连接

尝试一下mongoDB ,安装后不能访问.报 10061错误..去网上找了答案. 网上解决方案点击我 我尝试了n遍 还是错误. 我的mongoDB 是安装在 D:\Program Files\目录下面,自然配置文件也是放在Program Files子目录下....我尝试了 :mongod --config D:\Program Files\MongoDB\mongo.config  一直报找不到目录或者文件的错误.. 于是我将mongo.config直接放在D盘目录下...D:\mongo.co