1、安装Redis 6.2(六个节点,三主、三副本)
dnf -y install redis
2、修改配置(六个节点)
# 修改部分的配置文件 # vim /etc/redis/redis.conf ... bind 0.0.0.0 daemonize yes requirepass password maxmemory 4G maxmemory-policy volatile-lru appendonly yes cluster-enabled yes cluster-config-file nodes-6379.conf cluster-node-timeout 15000 ...
3、启动服务
systemctl enable --now redis
4、创建集群
redis-cli --cluster create 172.16.0.101:6379 172.16.0.102:6379 172.16.0.103:6379 172.16.0.104:6379 172.16.0.105:6379 172.16.0.106:6379 --cluster-replicas 1
5、集群验证
redis-cli --cluster check 172.16.0.101:6379
标签:Rocky,Cluster,--,redis,6379,Redis,cluster,172.16 From: https://www.cnblogs.com/a120608yby/p/17167566.html