Docs Home → MongoDB Manual

db.version()

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