Docs HomeMongoDB Manual

db.version()

db.version()
Returns:返回值:The version of the mongod or mongos instance.mongodmongos实例的版本。