這期內(nèi)容當中小編將會給大家?guī)碛嘘P(guān)MonogoDB中怎么查看配置的參數(shù)值,文章內(nèi)容豐富且以專業(yè)的角度為大家分析和敘述,閱讀完這篇文章希望大家可以有所收獲。
棗莊網(wǎng)站建設(shè)公司創(chuàng)新互聯(lián),棗莊網(wǎng)站設(shè)計制作,有大型網(wǎng)站制作公司豐富經(jīng)驗。已為棗莊1000+提供企業(yè)網(wǎng)站建設(shè)服務。企業(yè)網(wǎng)站搭建\外貿(mào)網(wǎng)站制作要多少錢,請找那個售后服務好的棗莊做網(wǎng)站的公司定做!怎樣在MongoDB實現(xiàn)mysql show variables like 'xx';
例如:
1.查看所有參數(shù)值:
C:\Users\duansf>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.查看數(shù)據(jù)文件和日志文件路徑:
> db.runCommand("getCmdLineOpts")
{
"argv" : [
"C:\\Users\\duansf\\Desktop\\mongodb\\mongodb-2.6.6\\bin\\mongod.exe",
"-journal",
"--dbpath",
"d:\\db\\data\\db",
"--logpath",
"d:\\db\\data\\log\\MongoDB.log",
"--logappend",
"--service"
],
"parsed" : {
"service" : true,
"storage" : {
"dbPath" : "d:\\db\\data\\db",
"journal" : {
"enabled" : true
}
},
"systemLog" : {
"destination" : "file",
"logAppend" : true,
"path" : "d:\\db\\data\\log\\MongoDB.log"
}
},
"ok" : 1
}
>
上述就是小編為大家分享的MonogoDB中怎么查看配置的參數(shù)值了,如果剛好有類似的疑惑,不妨參照上述分析進行理解。如果想知道更多相關(guān)知識,歡迎關(guān)注創(chuàng)新互聯(lián)-成都網(wǎng)站建設(shè)公司行業(yè)資訊頻道。
標題名稱:MonogoDB中怎么查看配置的參數(shù)值-創(chuàng)新互聯(lián)
文章源于:http://jinyejixie.com/article6/dsieig.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供企業(yè)網(wǎng)站制作、云服務器、建站公司、做網(wǎng)站、網(wǎng)站維護、響應式網(wǎng)站
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容