Why the Redis sync operation failed

Source: Internet
Author: User

Tag: Redis slaveof bind synchronization failed

Today, the master-slave synchronization of Redis, the Setup method is actually very simple, but the crash is to encounter a puzzling problem, always can't sync.
Look at the error log:

toto MASTER: Invalid argument

All is the parameter error, made long time, finally found an answer in StackOverflow, record.
Mainly when slave to request master to synchronize the data, it seems to read the first IP bind binding

In the slave configuration file:

Bind 127.0.0.1 192.168.1.12

So he found the 127.0.0.1 and was never able to sync.

Modify the configuration to put slave's extranet IP in the first position of bind so it's OK.

Bind 192.168.1.12 127.0.0.1

It would be nice to be like this.

Reference URL:
http://stackoverflow.com/questions/29622059/redis-slave-unable-to-connect-to-master-invalid-argument/29992578

Copyright NOTICE: This article for Bo Master original article, can be reproduced at will, but please specify the source: Http://blog.csdn.net/zhouzme

Why the Redis sync operation failed

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.