<?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/category/config/database/redis/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>Sun, 10 May 2026 14:53:20 +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>
		<item>
		<title>Linux下Redis服务器安装配置</title>
		<link>https://www.osyunwei.com/archives/7225.html</link>
		<comments>https://www.osyunwei.com/archives/7225.html#comments</comments>
		<pubDate>Mon, 20 Jan 2014 07:57:36 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Redis]]></category>
		<category><![CDATA[Redis配置]]></category>

		<guid isPermaLink="false">http://www.osyunwei.com/?p=7225</guid>
		<description><![CDATA[说明： 操作系统：CentOS 1、安装编译工具 yum install wget  make gcc gcc-c++ zlib-devel openssl openssl-devel pcre-devel kernel keyutils  patch perl 2、安装tcl组件包（安装Redis需要tcl支持） 下载：http://downloads.sourceforge.net/tcl/tcl8.6.1-src.tar.gz 上传tcl8.6.1-src.tar.gz到/usr/local/src目录 cd /usr/local/src #进入软件包存放目录 tar  zxvf  tcl8.6.1-src.tar.gz  #解压 cd tcl8.6.1 #进入安装目录 cd unix ./configure --prefix=/usr   --without-tzdata    --mandir=/usr/share/man $([ $(uname -m) = x86_64 ] &#38;&#38; echo --enable-64bit)   #配置 make #编译 sed -e "s@^\(TCL_SRC_DIR='\).*@\1/usr/include'@"  -e "/TCL_B/s@='\(-L\)\?.*unix@='\1/usr/lib@"  -i tclConfig.sh [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/7225.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/7225.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Linux下php安装Redis扩展</title>
		<link>https://www.osyunwei.com/archives/7210.html</link>
		<comments>https://www.osyunwei.com/archives/7210.html#comments</comments>
		<pubDate>Fri, 17 Jan 2014 08:39:37 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Redis]]></category>
		<category><![CDATA[php安装Redis]]></category>

		<guid isPermaLink="false">http://www.osyunwei.com/?p=7210</guid>
		<description><![CDATA[说明：        操作系统：CentOS php安装目录：/usr/local/php php.ini配置文件路径：/usr/local/php/etc/php.ini Nginx安装目录：/usr/local/nginx Nginx网站根目录：/usr/local/nginx/html 系统运维  www.osyunwei.com  温馨提醒：qihang01原创内容 版权所有,转载请注明出处及原文链接 1、安装编译工具 yum install wget  make gcc gcc-c++ zlib-devel openssl openssl-devel pcre-devel kernel keyutils  patch perl 2、安装redis 下载：https://github.com/nicolasff/phpredis/archive/2.2.4.tar.gz 上传phpredis-2.2.4.tar.gz到/usr/local/src目录 cd /usr/local/src #进入软件包存放目录 tar zxvf phpredis-2.2.4.tar.gz #解压 cd phpredis-2.2.4 #进入安装目录 /usr/local/php/bin/phpize #用phpize生成configure配置文件 ./configure --with-php-config=/usr/local/php/bin/php-config  #配置 make  #编译 make install  #安装 安装完成之后，出现下面的安装路径 /usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/ 3、配置php支持 vi /usr/local/php/etc/php.ini  [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/7210.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/7210.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux下php安装phpredis</title>
		<link>https://www.osyunwei.com/archives/5362.html</link>
		<comments>https://www.osyunwei.com/archives/5362.html#comments</comments>
		<pubDate>Mon, 24 Sep 2012 09:03:12 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Redis]]></category>
		<category><![CDATA[phpredis]]></category>

		<guid isPermaLink="false">http://www.osyunwei.com/?p=5362</guid>
		<description><![CDATA[说明： php安装目录：/usr/local/php5 php.ini配置文件路径：/usr/local/php5/etc/php.ini Nginx安装目录：/usr/local/nginx Nginx网站根目录：/usr/local/nginx/html 1、安装编译工具 yum install wget  make gcc gcc-c++ zlib-devel openssl openssl-devel pcre-devel kernel keyutils  patch perl 2、安装phpredis https://github.com/owlient/phpredis/downloads/ #进入下载页面，下载owlient-phpredis-2.1.1-1-g90ecd17.tar.gz，上传到cd /usr/local/src目录 cd /usr/local/src  #进入软件包存放目录 tar zxvf owlient-phpredis-2.1.1-1-g90ecd17.tar.gz  #解压 cd owlient-phpredis-90ecd17 #进入安装目录 /usr/local/php5/bin/phpize  #用phpize生成configure配置文件 ./configure --with-php-config=/usr/local/php5/bin/php-config  #配置 make #编译 make install #安装 安装完成之后，出现下面的界面，记住以下路径，后面会用到 系统运维 www.osyunwei.com 温馨提醒：qihang01原创内容版权所有,转载请注明出处及原文链接 /usr/local/php5/lib/php/extensions/no-debug-non-zts-20090626/  #phpredis模块路径 3、配置php支持phpredis vi /usr/local/php5/etc/php.ini  #编辑配置文件，在最后一行添加以下内容 extension="redis.so" [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/5362.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/5362.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
