1、命令:redis-cli -n 2 keys '*' | xargs -I '{}' redis-cli -n 2 migrate 目标IP 6379 '' 2 10000 COPY keys '{}'
redis-cli -n 2 keys '*' | xargs -I '{}' redis-cli -n 2 migrate 目标IP 6379 '' 2 10000 COPY keys '{}'
https://blog.csdn.net/chuxin_mm/article/details/81569621
2、清空redis
flushall