MonogoDB中怎么查看配置的参数值


这期内容当中小编将会给大家带来有关MonogoDB中怎么查看配置的参数值,文章内容丰富且以专业的角度为大家分析和叙述,阅读完这篇文章希望大家可以有所收获。
怎样在MongoDB实现mysql show variables like ‘xx’;
例如:
1.查看所有参数值:
C:Usersduansf>mongo
MongoDB shell version: 2.6.6
connecting to: test
> use admin
switched to db admin
> db.adminCommand({getParameter:”*”})
{
“journalCommitInterval” : 0,
“traceExceptions” : false,
“replMonitorMaxFailedChecks” : 30,
“_forceLegacyShardWriteMode” : false,
“authSchemaVersion” : 3,
“clusterAuthMode” : “undefined”,
“connPoolMaxConnsPerHost” : 200,
“connPoolMaxShardedConnsPerHost” : 200,
“enableLocalhostAuthBypass” : true,
“enableTestCommands” : 0,
“failIndexKeyTooLong” : true,
“internalQueryCacheFeedbacksStored” : 20,
“internalQueryCacheSize” : 5000,
“internalQueryCacheStdDeviations” : 2,
“internalQueryCacheWriteOpsBetweenFlush” : 1000,
“internalQueryEnumerationMaxIntersectPerAnd” : 3,
“internalQueryEnumerationMaxOrSolutions” : 10,
“internalQueryForceIntersectionPlans” : false,
“internalQueryMaxScansToExplode” : 200,
“internalQueryPlanEvaluationCollFraction” : 0.3,
“internalQueryPlanEvaluationMaxResults” : 101,
“internalQueryPlanEvaluationWorks” : 10000,
“internalQueryPlanOrChildrenIndependently” : true,
“internalQueryPlannerEnableHashIntersection” : false,
“internalQueryPlannerEnableIndexIntersection” : true,
“internalQueryPlannerMaxIndexedSolutions” : 64,
“internalSCCAllowFastestAuthConfigReads” : false,
“internalSCCAllowFastestMetadataConfigReads” : false,
“logLevel” : 0,
“logUserIds” : false,
“maxSyncSourceLagSecs” : 30,
“newCollectionsUsePowerOf2Sizes” : true,
“notablescan” : false,
“queueForMigrationCommit” : true,
“quiet” : false,
“releaseConnectionsAfterResponse” : true,
“replApplyBatchSize” : 1,
“replIndexPrefetch” : “uninitialized”,
“skipCorruptDocumentsWhenCloning” : false,
“sslMode” : “disabled”,
“supportCompatibilityFormPrivilegeDocuments” : true,
“syncdelay” : 60,
“textSearchEnabled” : true,
“ttlMonitorEnabled” : true,
“verboseQueryLogging” : false,
“ok” : 1
}
>
2.查看数据文件和日志文件路径:
> db.runCommand(“getCmdLineOpts”)
{
“argv” : [
“C:UsersduansfDesktopmongodbmongodb-2.6.6binmongod.exe”,
“-journal”,
“–dbpath”,
“d:dbdatadb”,
“–logpath”,
“d:dbdatalogMongoDB.log”,
“–logappend”,
“–service”
],
“parsed” : {
“service” : true,
“storage” : {
“dbPath” : “d:dbdatadb”,
“journal” : {
“enabled” : true
}
},
“systemLog” : {
“destination” : “file”,
“logAppend” : true,
“path” : “d:dbdatalogM免费云主机域名ongoDB.log”
}
},
“ok” : 1
}
>
上述就是小编为大家分享的MonogoDB中怎么查看配置的参数值了,如果刚好有类似的疑惑,不妨参照上述分析进行理解。如果想知道更多相关知识,欢迎关注百云行业资讯频道。

相关推荐: PLSQL乱码

?ps:如果想转换为UTF8字符集,可以赋予“NLS_LANG”为 “AMERICAN_AMERICA.UTF8”,然后免费云主机域名重新启动 pl/sql相关推荐: Oracle standby ORA-00600:[3020] ORA-10567現象 Or…

免责声明:本站发布的图片视频文字,以转载和分享为主,文章观点不代表本站立场,本站不承担相关法律责任;如果涉及侵权请联系邮箱:360163164@qq.com举报,并提供相关证据,经查实将立刻删除涉嫌侵权内容。

(0)
打赏 微信扫一扫 微信扫一扫
上一篇 01/04 14:27
下一篇 01/04 14:29