redis集群配置

1.修改配置文件增加集群配置

2.启动所有redis节点

3.启动集群redis-cli --cluster create --cluster-replicas 1 116.62.198.68:6379 116.62.198.68:6380 116.62.198.68:6381 116.62.198.68:6389 116.62.198.68:6390 116.62.198.68:6391

#redis.conf配置
include /root/myredis/redis.conf
pidfile "/var/run/redis_6379.pid"
port 6379
dbfilename "dump6379.rdb"
cluster-enabled yes
cluster-config-file nodes-6379.conf
cluster-node-timeout 15000

  

 

上一篇:PHP Redis - 事务


下一篇:Redis缓存雪崩 缓存穿透 缓存击穿