Site updated: 2022-10-17 15:43:42

This commit is contained in:
qinglong
2022-10-17 15:43:43 +08:00
parent 463c21e985
commit 9ff3c0ddeb
59 changed files with 73 additions and 69 deletions

View File

@ -21,6 +21,7 @@
<title>redis主从基础配置记录</title>
<link rel="alternate" href="https://blog.jingxiyuan.cn/2022/10/17/redis%E4%B8%BB%E4%BB%8E%E5%9F%BA%E7%A1%80%E9%85%8D%E7%BD%AE%E8%AE%B0%E5%BD%95/"/>
<content type="html">&lt;h4 id=&#34;主服务&#34;&gt;&lt;a class=&#34;anchor&#34; href=&#34;#主服务&#34;&gt;#&lt;/a&gt; 主服务&lt;/h4&gt;
&lt;h6 id=&#34;基础配置&#34;&gt;&lt;a class=&#34;anchor&#34; href=&#34;#基础配置&#34;&gt;#&lt;/a&gt; 基础配置&lt;/h6&gt;
&lt;p&gt;port 6379&lt;/p&gt;
&lt;p&gt;requirepass 123456密码建议不设置&lt;/p&gt;
&lt;p&gt;vm-enabled no (虚拟内存,内存够的情况下可以不使用)&lt;/p&gt;
@ -52,6 +53,7 @@ normal -&amp;gt; 正常客户端&lt;br /&gt;
&lt;p&gt;client-output-buffer-limit normal 0 0 0&lt;/p&gt;
&lt;p&gt;client-output-buffer-limit slave 5gb 512mb 60&lt;/p&gt;
&lt;p&gt;client-output-buffer-limit pubsub 32mb 8mb 60&lt;/p&gt;
&lt;h6 id=&#34;持久化配置&#34;&gt;&lt;a class=&#34;anchor&#34; href=&#34;#持久化配置&#34;&gt;#&lt;/a&gt; 持久化配置&lt;/h6&gt;
&lt;p&gt;--- 关闭 RDB 持久化 ---&lt;/p&gt;
&lt;p&gt;save &amp;quot;&amp;quot;&lt;/p&gt;
&lt;p&gt;默认配置如下:&lt;/p&gt;
@ -112,8 +114,8 @@ redis-cli -n 6 scan 0 match *2020-06-12 count 10000 | xargs redis-cli -n 6 del&l
</content>
<category term="技术分享" scheme="https://blog.jingxiyuan.cn/categories/%E6%8A%80%E6%9C%AF%E5%88%86%E4%BA%AB/" />
<category term="nginx" scheme="https://blog.jingxiyuan.cn/tags/nginx/" />
<category term="cookie" scheme="https://blog.jingxiyuan.cn/tags/cookie/" />
<category term="iframe" scheme="https://blog.jingxiyuan.cn/tags/iframe/" />
<category term="cookie" scheme="https://blog.jingxiyuan.cn/tags/cookie/" />
<updated>2022-10-14T09:13:00.000Z</updated>
</entry>
<entry>