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: