WEB开发网
开发学院服务器云计算 Redis安装及主从配置 阅读

Redis安装及主从配置

 2012-07-18 19:36:33 来源:WEB开发网   
核心提示:当主结点宕掉时当主结点突然间不可用,两台从机会由于找不到主结点而报错,Redis安装及主从配置(4),信息如下: [597] 26 Sep 18:46:09 * Connecting to MASTER... [597] 26
当主结点宕掉时
当主结点突然间不可用,两台从机会由于找不到主结点而报错,信息如下:
[597] 26 Sep 18:46:09 * Connecting to MASTER...
[597] 26 Sep 18:46:09 # Unable to connect to MASTER: Connection refused
[597] 26 Sep 18:46:10 * Connecting to MASTER...
[597] 26 Sep 18:46:10 # Unable to connect to MASTER: Connection refused
[597] 26 Sep 18:46:11 * Connecting to MASTER...
[597] 26 Sep 18:46:11 # Unable to connect to MASTER: Connection refused
[597] 26 Sep 18:46:12 * Connecting to MASTER...
[597] 26 Sep 18:46:12 # Unable to connect to MASTER: Connection refused
[597] 26 Sep 18:46:13 * Connecting to MASTER...
[597] 26 Sep 18:46:13 # Unable to connect to MASTER: Connection refused
[597] 26 Sep 18:46:14 - 0 clients connected (0 slaves), 790616 bytes in use
主结点在没有启动的情况下,从机先启动时
当主结点还没有启动时,从结点先启动,由于找不到对应主结点,会报如下的信息错误:
[Intranet root@xasc-150-208 /usr/alibaba/install/redis-2.2.12/src]
#./redis-server ../redis.conf
[1842] 26 Sep 18:48:50 * Server started, Redis version 2.2.12
[1842] 26 Sep 18:48:50 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
[1842] 26 Sep 18:48:50 * DB loaded from disk: 0 seconds
[1842] 26 Sep 18:48:50 * The server is now ready to accept connections on port 6379
[1842] 26 Sep 18:48:50 - 0 clients connected (0 slaves), 790616 bytes in use
[1842] 26 Sep 18:48:50 * Connecting to MASTER...
[1842] 26 Sep 18:48:50 # Unable to connect to MASTER: Connection refused
[1842] 26 Sep 18:48:51 * Connecting to MASTER...
[1842] 26 Sep 18:48:51 # Unable to connect to MASTER: Connection refused
[1842] 26 Sep 18:48:52 * Connecting to MASTER...
[1842] 26 Sep 18:48:52 # Unable to connect to MASTER: Connection refused
[1842] 26 Sep 18:48:53 * Connecting to MASTER...
[1842] 26 Sep 18:48:53 # Unable to connect to MASTER: Connection refused
[1842] 26 Sep 18:48:54 * Connecting to MASTER...
[1842] 26 Sep 18:48:54 # Unable to connect to MASTER: Connection refused
[1842] 26 Sep 18:48:55 - 0 clients connected (0 slaves), 790616 bytes in use

上一页  1 2 3 4 5 6  下一页

Tags:Redis 主从 配置

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接