为同一个问题重新打开其他帖子而道歉,但我尝试了所有提供的解决方案,但它没有用。
我的日志说:
root@marcproves:/var/log/mongodb# tail -f mongodb.log
Tue Apr 1 04:25:29.272 [initandlisten] shutdown: going to close sockets...
Tue Apr 1 04:25:29.273 [initandlisten] shutdown: waiting for fs preallocator...
Tue Apr 1 04:25:29.273 [initandlisten] shutdown: lock for final commit...
Tue Apr 1 04:25:29.273 [initandlisten] shutdown: final commit...
Tue Apr 1 04:25:29.273 [initandlisten] shutdown: closing all files...
Tue Apr 1 04:25:29.273 [initandlisten] closeAllFiles() finished
Tue Apr 1 04:25:29.273 [initandlisten] journalCleanup...
Tue Apr 1 04:25:29.273 [initandlisten] removeJournalFiles
Tue Apr 1 04:25:29.275 [initandlisten] shutdown: removing fs lock...
Tue Apr 1 04:25:29.275 dbexit: really exiting now
和我的控制台输出:
root@marcproves:/var/log/mongodb# mongo
MongoDB shell version: 2.4.9
connecting to: test
Tue Apr 1 04:55:28.679 Error: couldn't connect to server 127.0.0.1:27017 at src/mongo/shell/mongo.js:145
exception: connect failed
root@marcproves:/var/log/mongodb#
我在mongo官方网页上为ubuntu版本安装了mongo,这种情况发生了!
修复:空间问题