摘要: Redis主从复制配置 环境描述Redis Master:192.168.1.100 6379(Ubuntu系统)Redis Slave1:192.168.1.101 6380(Ubuntu系统)Redis Slave2:192.168.1.102 6381(Ubuntu系统) 安装redis分别在 阅读全文
posted @ 2016-09-13 13:00 爱分享社区 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Jedis 使用 commons-pool 完成池化实现。 先做个配置文件(properties文件): jedisPool的相关详细配置可参考:http://www.2cto.com/database/201311/254449.html 阅读全文
posted @ 2016-09-13 11:40 爱分享社区 阅读(304) 评论(0) 推荐(0) 编辑
摘要: Memcached 完全基于分布式集群,而 Redis 是 Master-Slave ,如果想把 Reids ,做成集群模式,无外乎多做几套 Master-Slave ,每套 Master-Slave 完成各自的容灾处理,通过 Client 工具,完成一致性哈希。( PS : Memcached 是 阅读全文
posted @ 2016-09-13 11:37 爱分享社区 阅读(183) 评论(0) 推荐(0) 编辑
摘要: /** * redis的Java客户端Jedis测试验证 * * @author */ public class Test { /** * 非切片客户端链接 */ private Jedis jedis; /** * 非切片链接池 */ private JedisPool jedisPool; /* 阅读全文
posted @ 2016-09-13 11:36 爱分享社区 阅读(276) 评论(0) 推荐(0) 编辑