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輸入你的密碼

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