Mac redise 集群

版权声明: https://blog.csdn.net/yz18931904/article/details/86433780

参考的文章

https://blog.csdn.net/lilongjiu/article/details/82286433

路径 /usr/local/redis-4.0.12

 集群的节点放在 /usr/local/redis-4.0.12/cluster 下面 

先关的命令:

ps -ef|grep redis

./src/redis-trib.rb create --replicas 1 127.0.0.1:7000 127.0.0.1:7001 127.0.0.1:7002 127.0.0.1:7003 127.0.0.1:7004 127.0.0.1:7005 
 

sudo redis-server ./7005/redis.conf &

p ./7000/redis.conf ./7005/redis.conf

sudo vim ./7003/redis.conf 

登录指定的节点查询

redis-cli -h 127.0.0.1 -c -p 7002

猜你喜欢

转载自blog.csdn.net/yz18931904/article/details/86433780