Redis Master-slave replication failed (Master_link_status:down)

Source: Internet
Author: User

The Master_link_status:down prompt appears when you configure Redis master-slave replication today.

First open the Slave redis.conf configuration file to determine if the slaveof and Masterauth two options are configured correctly.

Then turn off the options for the background process: Daemonize No (most students should set it to Yes for convenience)

The following prompt appears when the slave is restarted:

[10144] 01:04:22 * Connecting to MASTER ...
[10144] 01:04:22 * MASTER <-> SLAVE Sync started
[10144] 01:04:22 * Non blocking Connect for SYNC fired the event.
[10144] 01:04:22 # Unable to AUTH to Master:writing to master:no the route to host

Say that slave is not connected to master, that could be the cause of the firewall. Then use the following command to separate master and slave firewall after the restart, done!

Service Iptables Stop

Redis Master-slave replication failed (Master_link_status:down)

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.