/usr/local/bin/redis-cli -a mypassword keys “s*” | xargs redis-cli -a mypasswod del

这里用了绝对路径

注意:如果么有找到s*的数据 将会报错  (error) ERR wrong number of arguments for ‘del’ command

Comments are closed.

Post Navigation