Home  >  Article  >  Database  >  Redis的主从复制设置与安装

Redis的主从复制设置与安装

WBOY
WBOYOriginal
2016-06-07 15:56:211050browse

1 验证redis的主从复制,将过程抓图 实验步骤 A. 安装Redis B. 启动Master Redis C. 创建redis-slave.conf配置文件 修改Redis端口和打开slaveof 设置 port 6389 vcD4KPHA+ICAgICAgICAgLi4uLi4uLjwvcD4KPHA+ICAgICAgIHNsYXZlb2YgMTI3LjAuMC4xIDYzNzk8L3A+CiAg

1 验证redis的主从复制,将过程抓图

实验步骤

A. 安装Redis

B. 启动Master Redis

\

C. 创建redis-slave.conf配置文件

修改Redis端口和打开slaveof 设置

port 6389
喎?http://www.2cto.com/kf/ware/vc/" target="_blank" class="keylink">vcD4KPHA+ICAgICAgICAgLi4uLi4uLjwvcD4KPHA+ICAgICAgIHNsYXZlb2YgMTI3LjAuMC4xIDYzNzk8L3A+CiAgCjxwPiAgRC4gIMb0tq9SZWRpcyBTbGF2ZTwvcD4KPHA+ICAgICA8aW1nIHNyYz0="http://www.2cto.com/uploadfile/Collfiles/20140515/2014051509045626.jpg" alt="\">

E. 查看进程,确认启动正常

\

F. 操作master redis

\

G. 读取slave Redis

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn