<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>系统运维 &#187; redis</title>
	<atom:link href="http://www.osyunwei.com/archives/tag/redis-2/feed" rel="self" type="application/rss+xml" />
	<link>https://www.osyunwei.com</link>
	<description>国产化OS/AnolisOS/openEuler/RHEL/CentOS/Rocky Linux/Debian/Ubuntu Linux FreeBSD 服务器教程 &#124; Windows Server 2003/2008/2012/2016/2019/2022/2025服务器教程</description>
	<lastBuildDate>Tue, 14 Apr 2026 10:59:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Linux下Redis-8.0.0集群3主3从部署</title>
		<link>https://www.osyunwei.com/archives/15656.html</link>
		<comments>https://www.osyunwei.com/archives/15656.html#comments</comments>
		<pubDate>Tue, 06 May 2025 09:24:18 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Redis]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[redis]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=15656</guid>
		<description><![CDATA[操作系统：openEuler 24.03 LTS SP1、CentOS-8、AlmaLinux、Rocky Linux等 Redis版本：8.0.0 服务器ip：192.168.21.100、192.168.21.101、192.168.21.128 部署说明：使用3台服务器，每台服务器启动2个redis服务，总共6个节点，3主3从组成redis集群 IP地址 端口 角色 Redis版本 192.168.21.100 6379 redis-master 8.0.0 192.168.21.100 6380 redis-slave 8.0.0 192.168.21.101 6379 redis-master 8.0.0 192.168.21.101 6380 redis-slave 8.0.0 192.168.21.128 6379 redis-master 8.0.0 192.168.21.128 6380 redis-slave 8.0.0 Redis集群模式下端口说明： 在Redis集群模式下，每个Redis实例需要绑定两个端口： 一个用于客户端访问端口（cluster bus）：6379，6380 另一个用于节点间的通信（cluster client）16379，16380 集群端口： 1、集群端口是普通端口+10000（10000是固定值，无法改变），如6379节点的集群端口为16379，6380节点的集群端口为16380 2、集群端口只用于节点之间的通信，如搭建集群、增减节点等操作时节点间的通信 3、客户端连接数据库还是要用普通通讯端口如6379，不要使用客户端连接集群接口16379 安装部署Redis集群 在所有服务器上操作 1、防火墙配置 开启tcp6379,16379,6380,16380端口 系统默认使用的是firewall作为防火墙，这里改为iptables防火墙。 1.1、关闭firewall： systemctl stop firewalld.service [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/15656.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/15656.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux下安装配置redis-8.0.0</title>
		<link>https://www.osyunwei.com/archives/15651.html</link>
		<comments>https://www.osyunwei.com/archives/15651.html#comments</comments>
		<pubDate>Tue, 06 May 2025 05:03:05 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Redis]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[redis]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=15651</guid>
		<description><![CDATA[操作系统： openEuler 24.03 LTS SP1、CentOS-8、AlmaLinux、Rocky Linux等 准备篇 1、关闭selinux sestatus #查看状态，显示disabled表示已经禁用 sed -i 's/^SELINUX=.*/SELINUX=disabled/' /etc/selinux/config #禁用selinux setenforce 0 #临时禁用 /usr/sbin/sestatus -v #查看selinux状态，disabled表示关闭 2、防火墙配置 2.1、关闭firewall： systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl mask firewalld systemctl stop firewalld yum remove firewalld 2.2、安装iptables防火墙 yum install iptables-services #安装 vi /etc/sysconfig/iptables #编辑防火墙配置文件，开放TCP 2049端口 # sample configuration for iptables service [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/15651.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/15651.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux下安装配置redis-7.4.3</title>
		<link>https://www.osyunwei.com/archives/15645.html</link>
		<comments>https://www.osyunwei.com/archives/15645.html#comments</comments>
		<pubDate>Tue, 06 May 2025 02:46:32 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Redis]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[redis]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=15645</guid>
		<description><![CDATA[操作系统： BigCloud Enterprise Linux For Euler 21.10 LTS https://mirrors.cmecloud.cn/bclinux/oe21.10/ openEuler 24.03 LTS SP1 https://www.openeuler.org/zh/download/ CentOS-8、AlmaLinux、Rocky Linux等 1、下载安装包 下载地址：https://download.redis.io/releases/redis-7.4.3.tar.gz 上传安装包到服务器/usr/local/src目录 2、升级gcc版本 #redis源码编译需要gcc的版本大于等于5 gcc -v 查看gcc版本 #已经是高版本的gcc了，不需要升级 #yum -y install gcc gcc-c++ #安装gcc #yum -y install tcl #升级到gcc版本 #yum -y install centos-release-scl #yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++ devtoolset-9-binutils #scl enable devtoolset-9 bash #版本临时生效 #echo "source /opt/rh/devtoolset-9/enable" &#62;&#62;/etc/profile [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/15645.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/15645.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux下Redis集群3主3从部署</title>
		<link>https://www.osyunwei.com/archives/13797.html</link>
		<comments>https://www.osyunwei.com/archives/13797.html#comments</comments>
		<pubDate>Fri, 09 Jun 2023 02:12:57 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Redis]]></category>
		<category><![CDATA[redis]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=13797</guid>
		<description><![CDATA[操作系统：CentOS-7.x Redis版本：5.0.14 服务器ip：192.168.21.100、192.168.21.101、192.168.21.128 部署说明：使用3台服务器，每台服务器启动2个redis服务，总共6个节点，3主3从组成redis集群 IP地址                       端口          角色  192.168.21.100         6379         redis-master 192.168.21.100         6380         redis-slave 192.168.21.101         6379         redis-master 192.168.21.101         6380      [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/13797.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/13797.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS 7.x 安装配置redis-7.0.4集群</title>
		<link>https://www.osyunwei.com/archives/12817.html</link>
		<comments>https://www.osyunwei.com/archives/12817.html#comments</comments>
		<pubDate>Thu, 04 Aug 2022 09:26:54 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Redis]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[redis]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=12817</guid>
		<description><![CDATA[准备篇 一、防火墙配置 CentOS 7.x默认使用的是firewall作为防火墙，这里改为iptables防火墙。 1、关闭firewall： systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl mask firewalld systemctl stop firewalld yum remove firewalld 2、安装iptables防火墙 yum install iptables-services #安装 vi /etc/sysconfig/iptables #编辑防火墙配置文件 # sample configuration for iptables service # you can edit this manually or use system-config-firewall # please do not ask us to add additional ports/services [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/12817.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/12817.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Redis日志按天切割并删除指定天数前的日志</title>
		<link>https://www.osyunwei.com/archives/12814.html</link>
		<comments>https://www.osyunwei.com/archives/12814.html#comments</comments>
		<pubDate>Thu, 04 Aug 2022 05:26:09 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Redis]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[redis]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=12814</guid>
		<description><![CDATA[Redis安装目录：/usr/local/redis-5.0.14/ #创建日志切割脚本 vi /usr/local/redis-5.0.14/cut-redis-log.sh #!/bin/bash #获取昨天的日期 file_date=$(date -d"1 day ago" +"%Y%m%d") #redis日志文件 log_path_redis=/usr/local/redis-5.0.14/log/redis.log #日志切割后的存放目录 back_base=/usr/local/redis-5.0.14/log/ #设置删除多少天之前的日志文件 days=180 #切割日志 #redis的日志文件可以直接mv，不需要重新加载服务就能生成新的日志文件 mv $log_path_redis $back_base/redis_$file_date.log #删除日志 find $back_base/redis_*.log -mtime +$days -exec rm {} \; :wq! #保存退出 #添加脚本执行权限 chmod +x /usr/local/redis-5.0.14/cut-redis-log.sh #添加计划任务，每天凌晨0:00执行一次备份 crontab -e 0 0 * * * /bin/sh /usr/local/redis-5.0.14/cut-redis-log.sh &#38; &#62;/dev/null :wq! #保存退出 #重启crond systemctl restart crond [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/12814.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/12814.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS 7.x 安装redis-6.0.16</title>
		<link>https://www.osyunwei.com/archives/12794.html</link>
		<comments>https://www.osyunwei.com/archives/12794.html#comments</comments>
		<pubDate>Tue, 26 Jul 2022 09:38:56 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Redis]]></category>
		<category><![CDATA[redis]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=12794</guid>
		<description><![CDATA[准备篇 一、防火墙配置 CentOS 7.x默认使用的是firewall作为防火墙，这里改为iptables防火墙。 1、关闭firewall： systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl mask firewalld systemctl stop firewalld yum remove firewalld 2、安装iptables防火墙 yum install iptables-services #安装 vi /etc/sysconfig/iptables #编辑防火墙配置文件 # sample configuration for iptables service # you can edit this manually or use system-config-firewall # please do not ask us to add additional ports/services [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/12794.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/12794.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS 7.x 安装redis-5.0.14</title>
		<link>https://www.osyunwei.com/archives/12784.html</link>
		<comments>https://www.osyunwei.com/archives/12784.html#comments</comments>
		<pubDate>Mon, 25 Jul 2022 06:51:30 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Redis]]></category>
		<category><![CDATA[redis]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=12784</guid>
		<description><![CDATA[准备篇 一、防火墙配置 CentOS 7.x默认使用的是firewall作为防火墙，这里改为iptables防火墙。 1、关闭firewall： systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl mask firewalld systemctl stop firewalld yum remove firewalld 2、安装iptables防火墙 yum install iptables-services #安装 vi /etc/sysconfig/iptables #编辑防火墙配置文件 # sample configuration for iptables service # you can edit this manually or use system-config-firewall # please do not ask us to add additional ports/services [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/12784.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/12784.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
