Standalone deployment of redis master-slave backup

Source: Internet
Author: User

Redis also supports master-slave backup to avoid spof. In my personal experiments on Master backup, due to the limited number of machines, there are usually few machines to support. This article describes how to implement redis master-slave backup on a computer.

Multiple redis instances are deployed on the same machine. To avoid conflicts, each instance must use a different port number. It is easy to specify a different port number when starting redis, or specify a port number in the configuration file. My experiment is the port number specified in the configuration file:

Then, specify the configuration file to start at startup:
./Redis-server./redis. conf
You can also start it in other ways. For details, see the help of redis-Server:
./Redis-server-H
To implement master-slave backup, configure in the configuration file:
After the master and slave redis instances are started separately, redis will automatically synchronize.
Reference: 1, redis Official Website: http://redis.io/topics/replication
Zookeeper

Standalone deployment of 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.