Home > Database > Mysql Tutorial > body text

Redis的主从复制设置与安装

WBOY
Release: 2016-06-07 15:56:21
Original
1091 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template