起因:手动部署的web应用,定期访问就会报500 服务器异常的错误
报错:redis.exceptions.ResponseError: 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.conf文件做如下修改:
stop-writes-on-bgsave-error no
并重启redis服务器
时隔几天,问题依然出现!!!
通过查看redis日志信息
vi /var/log/redis
显示的是配置文件报错误
进到redis-cli查看dir配置的路径
查看网上的dir路径一般是:
var/lib/redis
于是,对redis配置dir路径做修改
重启redis服务
service redis restart