Redis——报错总结

2024-08-16 09:51:38 浏览数 (2)

MISCONF Redis is configured to save RDB snapshots

代码语言:javascript复制
MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. 
Commands that may modify the data set are disabled. Please check Redis logs for details about the error.

redis的空间不足够缓存,所以报错,解决方法如下临时修改,永久解决修改redis.conf中的stop-writes-on-bgsave-error

代码语言:javascript复制
redis 127.0.0.1:6379> config set stop-writes-on-bgsave-error no

Redis server went away

代码语言:javascript复制
1.看redis服务是否启动,端口是否未开

2.服务器端的防火墙是否关闭

3.屏蔽redis.conf文件中bind 127.0.0.1

Redis too many open files error

代码语言:javascript复制
服务器上默认的文件句柄1024,直接爆了

查看句柄大小

0 人点赞