可用的方法有:(学习视频分享:编程视频)1、使用cliFLUSHDB 清除一个数据库,FLUSHALL清除整个redis数据。2、使用shellredis-cli keys"*" | while read LINE