<?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[Redis 主从架构设计]]></title><description><![CDATA[<p dir="auto"><a href="https://medium.com/@sunny_81705/redis-master-slave-architecture-e730403cb495" rel="nofollow ugc">https://medium.com/@sunny_81705/redis-master-slave-architecture-e730403cb495</a></p>
<p dir="auto"><img src="/assets/uploads/files/1651111822773-aca411a5-8967-4f08-9f2a-84752ccb7cab-image.png" alt="aca411a5-8967-4f08-9f2a-84752ccb7cab-image.png" class=" img-responsive img-markdown" /></p>
]]></description><link>http://an.forum.genostack.com/topic/628/redis-主从架构设计</link><generator>RSS for Node</generator><lastBuildDate>Sat, 13 Jun 2026 09:36:46 GMT</lastBuildDate><atom:link href="http://an.forum.genostack.com/topic/628.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 28 Apr 2022 02:16:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Redis 主从架构设计 on Thu, 28 Apr 2022 09:51:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://an.forum.genostack.com/uid/5">@zhangfanglin</a><br />
安装其他版本的redis（centos）</p>
<pre><code>wget http://download.redis.io/releases/redis-6.2.1.tar.gz
tar -zxvf redis-6.2.1.tar.gz redis-6.2.1
cd 进入redis-6.2.1,执行命令make
完成后提示 make test
测试完成后安装，执行 make install 默认安装路径 /usr/local/bin,
安装完成后，进入/usr/local/bin 执行./redis-server启动服务
启动完成，新窗口值./redis-cli 连接服务，执行命令info查看信息

</code></pre>
<p dir="auto">进程守护</p>
<pre><code>vi /etc/supervisord.d/redis.ini

[program:redis-work]
process_name=%(program_name)s_%(process_num)02d
command=/usr/bin/redis-server /etc/redis.conf --supervised systemd
autostart=true
autorestart=true
user=root
numprocs=1
redirect_stderr=true
stdout_logfile=/var/log/redis/redis-server.log

重启
systemctl restart supervisord
</code></pre>
<p dir="auto">测试</p>
<pre><code>ps -ef | grep redis
kill -9 ID
redis-cli  -h 0.0.0.0
0.0.0.0:6379&gt; get key
</code></pre>
]]></description><link>http://an.forum.genostack.com/post/1436</link><guid isPermaLink="true">http://an.forum.genostack.com/post/1436</guid><dc:creator><![CDATA[zhangfanglin]]></dc:creator><pubDate>Thu, 28 Apr 2022 09:51:15 GMT</pubDate></item><item><title><![CDATA[Reply to Redis 主从架构设计 on Thu, 28 Apr 2022 03:12:54 GMT]]></title><description><![CDATA[<pre><code>SLAVE OF 195.2.85.171:8886 enabled (user request from 'id=31369358 addr=20.223.204.143:55700 fd=5 name= age=0 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=32768 obl=0 oll=0 omem=0 events=r cmd=slaveof'
</code></pre>
<pre><code>IP地址: 20.223.204.143爱尔兰都柏林 微软云
</code></pre>
<pre><code>2067:M 24 Apr 03:34:13.025 * 1 changes in 900 seconds. Saving...
2067:M 24 Apr 03:34:13.025 * Background saving started by pid 6639
6639:C 24 Apr 03:34:13.025 # Failed opening the RDB file crontab (in server root dir /etc) for saving: Permission denied
d
</code></pre>
]]></description><link>http://an.forum.genostack.com/post/1435</link><guid isPermaLink="true">http://an.forum.genostack.com/post/1435</guid><dc:creator><![CDATA[zhangfanglin]]></dc:creator><pubDate>Thu, 28 Apr 2022 03:12:54 GMT</pubDate></item><item><title><![CDATA[Reply to Redis 主从架构设计 on Thu, 28 Apr 2022 02:33:59 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://www.willandskill.se/en/setup-a-highly-available-redis-cluster-with-sentinel-and-haproxy.amp.html/" rel="nofollow ugc">https://www.willandskill.se/en/setup-a-highly-available-redis-cluster-with-sentinel-and-haproxy.amp.html/</a><br />
<img src="/assets/uploads/files/1651113237636-3e758219-c247-4ceb-8102-1afcbc54d41c-image.png" alt="3e758219-c247-4ceb-8102-1afcbc54d41c-image.png" class=" img-responsive img-markdown" /></p>
]]></description><link>http://an.forum.genostack.com/post/1434</link><guid isPermaLink="true">http://an.forum.genostack.com/post/1434</guid><dc:creator><![CDATA[anneng]]></dc:creator><pubDate>Thu, 28 Apr 2022 02:33:59 GMT</pubDate></item><item><title><![CDATA[Reply to Redis 主从架构设计 on Thu, 28 Apr 2022 02:31:38 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://www.linuxhowto.net/how-to-setup-a-redis-cluster-in-centos-8-part-3/" rel="nofollow ugc">https://www.linuxhowto.net/how-to-setup-a-redis-cluster-in-centos-8-part-3/</a><br />
<img src="/assets/uploads/files/1651113097612-f2871f89-efaa-4933-801d-a6922549777f-image.png" alt="f2871f89-efaa-4933-801d-a6922549777f-image.png" class=" img-responsive img-markdown" /></p>
]]></description><link>http://an.forum.genostack.com/post/1433</link><guid isPermaLink="true">http://an.forum.genostack.com/post/1433</guid><dc:creator><![CDATA[anneng]]></dc:creator><pubDate>Thu, 28 Apr 2022 02:31:38 GMT</pubDate></item><item><title><![CDATA[Reply to Redis 主从架构设计 on Thu, 28 Apr 2022 02:24:37 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://www.digitalocean.com/community/cheatsheets/how-to-manage-replicas-and-clients-in-redis" rel="nofollow ugc">https://www.digitalocean.com/community/cheatsheets/how-to-manage-replicas-and-clients-in-redis</a></p>
]]></description><link>http://an.forum.genostack.com/post/1432</link><guid isPermaLink="true">http://an.forum.genostack.com/post/1432</guid><dc:creator><![CDATA[anneng]]></dc:creator><pubDate>Thu, 28 Apr 2022 02:24:37 GMT</pubDate></item></channel></rss>