正式环境redis主从配置
配置
1 | [root@localhost ~]# mkdir /home/redis_copy |
启动
1 | [root@localhost ~]# redis-server /home/redis_copy/6500/redis.conf |
81上配置哨兵
1 | [root@localhost ~]# mkdir /home/redis_copy/6600 |
启动哨兵
1 | [root@localhost ~]# redis-sentinel /home/redis_copy/6600/sentinel.conf |