scrapy-redis 報(bào)錯(cuò)
redis.exceptions.ResponseError: Command # 2 (ZREMRANGEBYRANK xxxxxx:requests 0 0) of pipeline caused error:
MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands
that may modify the data set are disabled, because this instance is configured to report errors during writes
if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.
window 處理
找到redis的安裝目錄氏涩, 打開redis.windows.conf
# 添加
maxmemory 4G
# 將 yes 改為 no
stop-writes-on-bgsave-error no
保存文件, 一定要記得保存
然后重啟redis
# 關(guān)閉redis
net stop redis
# 開啟redis
net start redis
linux 處理
修改redis.conf文件
查看redis 狀態(tài):
systemctl status redis
啟動(dòng)redis
systemctl start redis
重啟redis
systemctl restart redis.service
# 或者
service redis restart