搭建Redis踩得坑汇总
程序员文章站
2022-07-14 15:44:20
...
1.启动redis报错
creating server tcp listening socket 127.0.0.1:6379: bind No error
解决办法:
redis路径下,依次输入
redis-cli.exe
shutdown
exit
redis-server.exe redis.windows.conf
2.存储key,value时报错
io.lettuce.core.RedisCommandExecutionException: 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.
解决办法:
1.打开redis.windows.conf文件
2.修改属性stop-writes-on-bgsave-error设置为no
3.重启redis服务
注:stop-writes-on-bgsave-error的意思为yes时,表示redis创建一个新的后台进程dump rdb,如果在创建快照的时候,出现了问题,如硬盘满了,那么就会报上述错误(摘自https://blog.csdn.net/weixin_39472415/article/details/99703185)
待补充...
上一篇: Redis简介与安装
下一篇: 如何在墙内下载并安装Roboware