我正在使用 MongoDB shell 版本运行 Debian:2.4.3
我跑
use dbname
db.stats.find()
它输出以下内容
> db.stats.find()
Mon May 13 17:55:20.933 JavaScript execution failed: TypeError: Object function (scale){
return this.runCommand( { dbstats : 1 , scale : scale } );
} has no method 'find'
但是在其他集合上运行它可以正常工作。
这个 mongo 实例正在与 nodejs 一起使用。