标签:
集群搭建: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
标签:
原文地址:http://www.cnblogs.com/weixiaole/p/4353758.html