我需要知道在哪里可以找到 MongoDB runCommand 的引用资源。
即有哪些命令可用,每个命令可以使用哪些可选参数。
例如,
db.runCommand({addshard: "10.0.4.85:27020", allowLocal : 1, maxSize:2, minKey: 1, maxKey:10});
谢谢
//更新//
maxSize 在此处记录 maxSize
最佳答案
查看 MongoDB Command Reference (PDF) 获取最常用的列表。此外,为了获得完整列表,该卡片还提供了此提示:
To get a list of all commands available on your version of the server, run mongod --rest and then visit http://localhost:28017/_commands in your web browser
关于mongodb - 带有可选参数的 MongoDB runCommand 引用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7574816/