MongoDB: db.serverBuildInfo() method
db.serverBuildInfo
The db.serverBuildInfo() method is used to return a document that displays the compilation parameters for the mongod instance.
Syntax:
db.serverBuildInfo()
Example: MongoDB: db.serverBuildInfo() method
The following example will display the compilation parameters for the mongod instance.
db.serverBuildInfo();
Output:
> db.serverBuildInfo(); { "version" : "2.6.5", "gitVersion" : "e99d4fcb4279c0279796f237aa92fe3b64560bf6", "targetMinOS" : "Windows XP SP3", "OpenSSLVersion" : "", "sysInfo" : "windows sys.getwindowsversion(major=6, minor=1, build=7601, platform=2, service_pack='Service Pack 1') BOOST_LIB_VERSION=1_49", "loaderFlags" : "/nologo /DEBUG /INCREMENTAL:NO /LARGEADDRESSAWARE", "compilerFlags" : "/TP /nologo /EHsc /W3 /wd4355 /wd4800 /wd4267 /wd4244 /wd4290 /we4099 /Z7 /errorReport:none /MT /O2 /Oy-", "allocator" : "system", "versionArray" : [ 2, 6, 5, 0 ], "javascriptEngine" : "V8", "bits" : 32, "debug" : false, "maxBsonObjectSize" : 16777216, "ok" : 1 }
Retrieve the restaurants data from here
Previous:
db.runCommand() method
Next:
db.serverCmdLineOpts() method
It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.
https://w3resource.com/mongodb/shell-methods/database/db-serverBuildInfo.php
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics