redis报错 原

1.ERR Client sent AUTH, but no password is set

需要设置密码

redis-cli -p 6379
config set requirepass xxx //xxx为你的面

2.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快照导致不能持久化

解决方法:

config set stop-writes-on-bgsave-error no

3.NOAUTH Authentication required

原因:没有认证,说明没有使用密码连接

redis-cli -h 127.0.0.1 -p 6379 -a Password // password输入你的密码

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章