1、redis的启动。
进入cmd界面,在redis的安装目录下直接运行命令redis-server.exe redis.windows.conf。
如果报错,依次执行第一条指令:redis-cli.exe,第二条指令:shutdown第三条指令:exit
2、如下报错:

[2020-12-21 14:12:48,615: ERROR/MainProcess] consumer: Cannot connect to redis://127.0.0.1:6379/1: 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 (sto
│p-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error..
│Trying again in 18.00 seconds... (9/100)

解决:
目前发现两种解决方案:
法一:通过redis控制台输入stop-writes-on-bgsave-error值设置为no即可避免这种问题。

法二:通过修改redis.conf(Linux)redis.windows.conf(Windows)配置文件,将stop-writes-on-bgsave-error值改为no

最后修改:2021 年 10 月 20 日
如果觉得我的文章对你有用,请随意赞赏