在VMware的虚拟机运行mongodb时,遇到以下报错“Insufficient free space for journal files”

同时看mongodb.log也可以知道日志提示好明显的(红柜下一行),就是“Please make at least 3379MB available in /usr/local/mongodb4.0.8/data/db/journal or use --smallfiles”
最终解决方法加 --smallfiles参数
目录/usr/local/mongodb4.0.8
[root@localhost mongodb4.0.8]# ./bin/mongod --smallfiles -f mongodb.conf

本文介绍在VMware虚拟机中运行MongoDB时遇到的“Insufficient freespace for journal files”错误。通过查看mongodb.log文件,发现需要至少3379MB的可用空间在journal目录。最终解决方案是在启动mongod时加入--smallfiles参数。
7万+

被折叠的 条评论
为什么被折叠?



