gpg —keyserver hkp://keys.gnupg.net —recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
\curl -sSL https://get.rvm.io | bash -s stable
source ~/.bashrc
source ~/.bash_profile
source /ust/local/rvm/scripts/rvm
rvm install 2.3.0
rvm use 2.3.0 —default
gem install redis-4.0.0.gem
集群启动
./redis-trib.rb create --replicas 1 192.168.25.153:7001 192.168.25.153:7002 192.168.25.153:7003 192.168.25.153:7004 192.168.25.153:7005 192.168.25.153:7006
下载地址: https://rubygems.global.ssl.fastly.net/gems/redis-4.0.0.gem
http://www.cnblogs.com/feiyun126/p/7248989.html
配置方面
集群不用设置密码.不然连接不上
bind注释
daemonize yes后台启动
protocted-mode 修改
端口
cluster-enabled yes
开启集群
每一个redis节点下都需要删除以下文件
appendonly.aof
dump.rdb
nodes.conf
网友评论