Single-Machine deployment Redis master-slave backup

Source: Internet
Author: User

Redis also supports master-slave backup to avoid single points of failure. Individuals in charge from the backup experiment, because the number of machines is limited, generally very few machines do support.

This article will describe how to achieve a master-slave backup of Redis on a single computer.

Multiple Redis instances are deployed on the same machine, in order to avoid conflicts, each instance needs to use a different port number. Very easy. When you start Redis, specify a different port number, or specify the port number in the configuration file. My experiment is the port number specified in the configuration file:

Then, at startup, specify the configuration file to start:
./redis-server./redis.conf
Can also be started in other ways, in detail to see the help of Redis-server:
./redis-server-h
In order to implement the master-slave backup, configure in the configuration file:
After starting the master separately from the Redis instance, Redis will proactively synchronize itself.
References: 1, redis official website: http://redis.io/topics/replication


Single-Machine deployment Redis master-slave backup

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.