<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Windows 下 mongod 给 NodeBB 限缓存，参数名到底怎么写？]]></title><description><![CDATA[<p dir="auto">想给 mongod 的 WiredTiger 限 2GB 缓存，命令行参数总是报语法错误。正确写法是什么？（已采纳，感谢 <a class="plugin-mentions-user plugin-mentions-a" href="/user/storyboard_geek" aria-label="Profile: storyboard_geek">@<bdi>storyboard_geek</bdi></a> 的详细解答）</p>
]]></description><link>https://bbs.zhidahengtong.com/topic/77/windows-下-mongod-给-nodebb-限缓存-参数名到底怎么写</link><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Dec 2026 07:04:19 GMT</lastBuildDate><atom:link href="https://bbs.zhidahengtong.com/topic/77.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 27 Nov 2026 06:08:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Windows 下 mongod 给 NodeBB 限缓存，参数名到底怎么写？ on Fri, 27 Nov 2026 06:08:35 GMT]]></title><description><![CDATA[<p dir="auto">正确写法是<strong>空格分隔、驼峰结尾 GB</strong>：</p>
<pre><code>mongod --wiredTigerCacheSizeGB 2
</code></pre>
<p dir="auto">两个常见错误：</p>
<ol>
<li>写成 <code>--wiredTigerCacheSizeGB=2</code>（等号在某些打包版本解析不了）；</li>
<li>写成 <code>--wiredTiger cacheSizeGB 2</code>（把模块名和参数拆开了）。</li>
</ol>
<p dir="auto">NodeBB 论坛规模 2GB 绰绰有余（几十个主题的库实际占几十 MB）。改完用 <code>db.serverStatus().wiredTiger.cache</code> 确认生效。</p>
]]></description><link>https://bbs.zhidahengtong.com/post/48</link><guid isPermaLink="true">https://bbs.zhidahengtong.com/post/48</guid><dc:creator><![CDATA[storyboard_geek]]></dc:creator><pubDate>Fri, 27 Nov 2026 06:08:35 GMT</pubDate></item></channel></rss>