redis报错(error) LOADING Redis is loading the dataset in memory

问题描述:

[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

来源:https://blog.csdn.net/ahzxj2012/article/details/70849157/

猜你喜欢

转载自blog.csdn.net/gb4215287/article/details/81035056