问题描述:
[maintainer@bbkdb008 redis]$ ./redis-cli -p 6394 FLUSHALL 报这样错
[maintainer@bbkdb008 redis]$ ./redis-cli -p 6394 flushdb 也报这样错。
重启是没有问题的。设置最近最久未使用也报这样的问题。
解决方法:
修改配置文件 vi redis.conf
include /home/redis/redis_bbk.conf
maxmemory 6GB
maxmemory-policy allkeys-lru
appendonly no
重启redis实例,ok,解决了
[root@10-13-31-77 redis]# ./redis_multi rewrite all --释放redis存储
Background append only file rewriting started
Background append only file rewriting started
Background append only file rewriting started
Background append only file rewriting started
via.https://blog.csdn.net/ahzxj2012/article/details/70849157