根据key批量删除: [root@master data]# redis-cli -h localhost -p 6379 -n 1 keys "a*"|xargs redis-cli -h localhost -p 6379 -n 1 del