MongoDB:Unclean shutdown detected

早上启动mongoDB时出现了以下错误:

MongoDB:Unclean shutdown detected

解决办法是:

1、没有指定数据存储的文件夹的时候:

$  mongod --repair

2、指定数据存储的文件夹的时候:

$ mongod --repair --dbpath=/data/mongodb/db


完成后,重新启动mongodb。

你可能感兴趣的:(MongoDB:Unclean shutdown detected)