Site updated: 2022-10-17 15:43:42
This commit is contained in:
4
rss.xml
4
rss.xml
@ -25,6 +25,7 @@
|
||||
<link>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/</link>
|
||||
<pubDate>Mon, 17 Oct 2022 14:07:35 +0800</pubDate>
|
||||
<description><![CDATA[ <h4 id="主服务"><a class="anchor" href="#主服务">#</a> 主服务</h4>
|
||||
<h6 id="基础配置"><a class="anchor" href="#基础配置">#</a> 基础配置</h6>
|
||||
<p>port 6379</p>
|
||||
<p>requirepass 123456(密码,建议不设置)</p>
|
||||
<p>vm-enabled no (虚拟内存,内存够的情况下可以不使用)</p>
|
||||
@ -56,6 +57,7 @@ normal -&gt; 正常客户端<br />
|
||||
<p>client-output-buffer-limit normal 0 0 0</p>
|
||||
<p>client-output-buffer-limit slave 5gb 512mb 60</p>
|
||||
<p>client-output-buffer-limit pubsub 32mb 8mb 60</p>
|
||||
<h6 id="持久化配置"><a class="anchor" href="#持久化配置">#</a> 持久化配置</h6>
|
||||
<p>--- 关闭 RDB 持久化 ---</p>
|
||||
<p>save &quot;&quot;</p>
|
||||
<p>默认配置如下:</p>
|
||||
@ -98,8 +100,8 @@ redis-cli -n 6 scan 0 match *2020-06-12 count 10000 | xargs redis-cli -n 6 del&l
|
||||
<link>https://blog.jingxiyuan.cn/2022/10/14/%E5%85%81%E8%AE%B8%E8%B7%A8%E5%9F%9F%E8%8E%B7%E5%8F%96cookies%E6%96%B9%E6%B3%95/</link>
|
||||
<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/" />
|
||||
<pubDate>Fri, 14 Oct 2022 17:13:00 +0800</pubDate>
|
||||
<description><![CDATA[ <h4 id="使用场景"><a class="anchor" href="#使用场景">#</a> 使用场景</h4>
|
||||
<p> 在 A 域名的页面向 B 域名提交数据时需要代入 B 域名的 cookie,否则 B 域名会跳转到登陆页面。解决方式需要使用到 nginx 反向代理,配置如下:</p>
|
||||
|
Reference in New Issue
Block a user