服务器启动mongodb时出现问题
user @ -VirtualBox:〜$ mongo MongoDB shell版本:2.4.9连接到:测试Sun May 8 22:10:13.641错误:无法以src / mongo / shell / mongo.js连接到服务器127.0.0.1:27017 :145例外:连接失败
如何解决这个问题?
我有同样的问题。查看位于中的MongoDB日志文件,/var/log/mongodb/mongodb.log
解释了原因-在我的情况下是:
ERROR: Insufficient free space for journal files
Please make at least 3379MB available in /var/lib/mongodb/journal or use --smallfiles
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句