Redis 5.0 redis-cli --cluster help说明 redis-cli 创建集群
kevin.Zhu 发布于:2021-8-2 16:53 分类:文摘 有 25 人浏览,获得评论 0 条
https://www.cnblogs.com/zhoujinyi/p/11606935.html
创建步骤:
redis-cli --cluster create --cluster-replicas ip1:port ... ipN:portN
如果出现 slot的问题可以: redis-cli --cluster fix ip1:port1
ubuntu18.04新机 创建集群、相关脚本
ln -sf /lib/systemd/system/rc-local.service /etc/systemd/system/ && touch /etc/rc.local && \ echo "/usr/bin/redis-server /etc/redis.conf" >> /etc/rc.local && \ chmod a+x /etc/rc.local && \ echo -e "\n[Install]\nWantedBy=multi-user.target" >> /etc/systemd/system/rc-local.service