On this page本页内容
buildInfo
The buildInfo
command is an administrative command which returns a build summary for the current mongod
. buildInfo
命令是一个管理命令,它返回当前mongod
的构建摘要。buildInfo
has the following prototype form:具有以下原型形式:
{ buildInfo: 1 }
In 在mongosh
, call buildInfo
in the following form:mongosh
中,以以下形式调用buildInfo
:
db.runCommand( { buildInfo: 1 } )
The output document of buildInfo
has the following form:buildInfo
的输出文档格式如下:
{ "version" : "<string>", "gitVersion" : "<string>", "sysInfo" : "<string>", "loaderFlags" : "<string>", "compilerFlags" : "<string>", "allocator" : "<string>", "versionArray" : [ <num>, <num>, <...> ], "openssl" : <document>, "javascriptEngine" : "<string>", "bits" : <num>, "debug" : <boolean>, "maxBsonObjectSize" : <num>, "storageEngines" : [ "<string>", "<string>", "<...>" ], "ok" : <num> }
These fields are stable and should provide consistent behavior.这些字段是稳定的,应该提供一致的行为。
buildInfo.gitVersion
The commit identifier that identifies the state of the code used to build the 用于标识用于构建mongod
.mongod
的代码状态的提交标识符。
buildInfo.versionArray
An array that conveys version information about the 传递mongod
instance. mongod
实例版本信息的数组。See 有关此字符串的更可读版本,请参阅version
for a more readable version of this string.version
。
buildInfo.version
A string that conveys version information about the 传递mongod
instance. mongod
实例版本信息的字符串。If you need to present version information to a human, this field is preferable to 如果您需要向人员显示版本信息,则此字段优于versionArray
.versionArray
。
This string will take the format 此字符串将采用<major>.<minor>.<patch>
in the case of a release, but development builds may contain additional information.<major>.<minor>.<patch>
格式,但开发版本可能包含其他信息。
buildInfo.storageEngines
A list of storage engines available to the mongod
server.mongod
服务器可用的存储引擎列表。
buildInfo.javascriptEngine
A string that reports the JavaScript engine used in the 报告mongod
instance. mongod
实例中使用的JavaScript引擎的字符串。By default, this is 默认情况下,这是版本3.2之后的mozjs
after version 3.2, and previously V8
.mozjs
,之前是V8
。
buildInfo.bits
A number that reflects the target processor architecture of the 反映mongod
binary.mongod
二进制文件的目标处理器架构的数字。
buildInfo.maxBsonObjectSize
A number that reports the Maximum BSON Document Size.报告最大BSON文档大小的数字。
buildInfo.openssl
An embedded document describing the version of the TLS/SSL library that 一个嵌入式文档,描述了mongod
was built with and is currently using.mongod
构建时使用的TLS/SSL库的版本。
buildInfo.modules
A list of add-on modules that mongod
was built with. mongod
使用的附加模块列表。Possible values currently include "enterprise" and "rocksdb".当前可能的值包括“企业”和“rocksdb”。
These fields are for internal use only, and you should not expect their behavior or existence to remain consistent on any level.这些字段仅供内部使用,您不应期望它们的行为或存在在任何级别上保持一致。
buildInfo.sysInfo
Deprecated since version 3.2自版本3.2起已弃用.
buildInfo.sysInfo
no longer contains useful information.不再包含有用的信息。
buildInfo.allocator
The memory allocator that mongod
uses. mongod
使用的内存分配器。By default this is 默认情况下,这是tcmalloc
.tcmalloc
。
buildInfo.buildEnvironment
An embedded document containing various debugging information about the 包含有关mongod
build environment.mongod
构建环境的各种调试信息的嵌入式文档。