首页 > 其他 > 详细

redis 集群

时间:2015-03-20 16:11:53      阅读:432      评论:0      收藏:0      [点我收藏+]

集群搭建:http://www.cnblogs.com/zhaoguihua/p/redis-005.html

     http://hot66hot.iteye.com/blog/2050676

配置文件:daemonize no (yes是redis在后台运行,终端无输出)

     port 6378-6381

     maxclients 300

     cluster-enabled yes

     cluster-config-file nodes.conf

     cluster-node-timeout 5000

     appendonly yes

搭建时注意:redis集群启动注意:获得root权限在相应节点下(6378-6381) sudo su: redis-server ./redis.conf

                第一次配置集群,配置后以后启动不需要在配置:./redis-trib.rb create --replicas 0 127.0.0.1:6379 127.0.0.1:6380 127.0.0.1:6381

                启动客户端:./redis-cli -c -p 6379

                关闭服务端:redis-cli -p 6379 shutdown

redis集群原理:http://redis.io/topics/cluster-tutorial 

                              

redis 集群

原文:http://www.cnblogs.com/weixiaole/p/4353758.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!