Redis Master/Slave replication failed (master_link_status: down)

Source: Internet
Author: User
Tags redis cluster install redis

Redis Master/Slave replication failed (master_link_status: down)

The master_link_status: down prompt is displayed when configuring redis master-slave replication today. First, open the redis. conf configuration file of slave and check whether the slaveof and masterauth options are correctly configured.

Then, disable the daemonize no option of the background process (most of them should set it to yes for convenience)

The following prompt is displayed when slave is restarted:

[10144] 14 May 01:04:22 * Connecting to MASTER...
[10144] 14 May 01:04:22 * MASTER <-> SLAVE sync started
[10144] 14 May 01:04:22 * Non blocking connect for SYNC fired the event.
[10144] 14 May 01:04:22 # Unable to AUTH to MASTER: Writing to master: No route to host

It is said that slave cannot connect to the master, which may be the reason for the firewall. So run the following command to shut down the master and slave firewalls and restart them!

Service iptables stop

You may also like the following articles about Redis. For details, refer:

Install and test Redis in Ubuntu 14.04

Basic configuration of Redis master-slave Replication

Redis cluster details

Install Redis in Ubuntu 12.10 (graphic explanation) + Jedis to connect to Redis

Redis series-installation, deployment, and maintenance

Install Redis in CentOS 6.3

Learning notes on Redis installation and deployment

Redis. conf

Redis details: click here
Redis: click here

This article permanently updates the link address:

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.