我最近在我的电脑上遇到了一些存储问题,因此我更改了 mongo.conf 文件以减小日志的大小。这些是我输入的行。
mmapv1:
smallFiles: true
但是,每次当我尝试使用新更改运行 mongo 时,我都会收到此错误(没有更改它工作得很好)。你能告诉我出了什么问题吗?
<小时/>2016-02-11T22:32:14.002+0000 I FTDC [ftdc] Unclean full-time diagnostic data capture shutdown detected, found interim file, some metrics may have been lost. OK
2016-02-11T22:32:14.023+0000 W FTDC [ftdc] Uncaught exception in 'UnknownError Caught std::exception of type boost::filesystem::filesystem_error: boost::filesystem::file_size: No such file or directory: "/data/db/diagnostic.data/metrics.interim.temp"' in full-time diagnostic data capture subsystem. Shutting down the full-time diagnostic data capture subsystem.
最佳答案
我会尝试删除目录/data/db/diagnostic.data
。
您还可以通过使用以下选项启动 mongo 来禁用诊断数据收集:
setParameter:
diagnosticDataCollectionEnabled: false
关于mongodb - 蒙戈异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35351958/