Redis主從複製失敗(master_link_status:down)

來源:互聯網
上載者:User

Redis主從複製失敗(master_link_status:down)

今天配置redis主從複製時出現master_link_status:down提示。首先開啟slave的redis.conf設定檔,確定slaveof 和masterauth 兩個選項配置是否正確。

然後再把後台進程的選項關閉:daemonize no(應該大多數同學為了方便把它設為yes了)

slave再啟動時出現如下提示:

[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

說slave串連不上master,那就可能是防火牆的原因了。於是用下面命令分別把master和slave防火牆關掉之後重啟,搞定!

service iptables stop

下面關於Redis的文章您也可能喜歡,不妨參考下:

Ubuntu 14.04下Redis安裝及簡單測試

Redis主從複製基本配置

Redis叢集明細文檔

Ubuntu 12.10下安裝Redis(圖文詳解)+ Jedis串連Redis

Redis系列-安裝部署維護篇

CentOS 6.3安裝Redis

Redis安裝部署學習筆記

Redis設定檔redis.conf 詳解

Redis 的詳細介紹:請點這裡
Redis 的:請點這裡

本文永久更新連結地址:

相關文章

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.