buildInfo

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 } )
Example

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>
}

Output输出

buildInfo

The document returned by the buildInfo command.buildInfo命令返回的文档。

Supported支持

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 mozjs after version 3.2, and previously V8.默认情况下,这是版本3.2之后的mozjs,之前是V8

buildInfo.bits

A number that reflects the target processor architecture of the mongod binary.反映mongod二进制文件的目标处理器架构的数字。

buildInfo.debug

A boolean. 布尔值。true when built with debugging options.使用调试选项构建时为true

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”。

Unstable不稳定的

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构建环境的各种调试信息的嵌入式文档。

←  Diagnostic CommandscollStats →