对于 AI 代理:可在 https://www.mongodb.com/zh-cn/docs/llms.txt 获取文档索引—通过在任何 URL 路径后添加 .md 可获取所有页面的 Markdown 版本。
Docs 菜单

setParameter(数据库命令)

setParameter

setParameter is an administrative command for modifying options normally set on the command line. You must issue the setParameter command against the admin database.

此命令可用于以下环境中托管的部署:

重要

This command is not supported in MongoDB Atlas clusters. For information on Atlas support for all commands, see Unsupported Commands.

db.adminCommand(
{
setParameter: 1,
<parameter>: <value>
}
)

有关可用参数(包括示例),请参阅适用于自托管部署的MongoDB Server参数。

Commands issued by the admin command setParameter do not survive server restarts. For a persistent option use the --setParameter command line option or the setParameter configuration file setting.

When using Stable API V1 with apiStrict set to true, you cannot use setParameter to modify server parameters.

给本页内容打分