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
|
- ››配置MySQL出错The service could not be started....
- ››配置apache虚拟主机
- ››Redis安装及主从配置
- ››配置远程客户机使用命名管道协议访问SQL服务器
- ››配置SQL Server2005以允许远程访问
- ››配置ISA Server以创建站点到站点VPN 连接之一
- ››配置ISA Server以创建站点到站点VPN 连接之二
- ››配置ISA Server以创建站点到站点VPN 连接之三 启用...
- ››配置VPN服务器中的L2TP/IPSEC:ISA2006系列之二十...
- ››配置单网卡的ISA缓存服务器:ISA2006系列之二十七...
- ››配置Win2008作为远程访问SSL-VPN服务器之一
- ››配置Win2008作为远程访问SSL-VPN服务器之二
更多精彩
赞助商链接