for i in 123 124 125 126
do
redis-cli -h 192.168.0.${i} KEYS key_prefix_:*|xargs redis-cli -h 192.168.0.1 -n 0 del
done

 

相关文章: