Redis (error) NOAUTH Authentication required解决方法

输入密码即可解决 auth redis (redis是redis的密码)

127.0.0.1:6379> set mykey lisi
(error) NOAUTH Authentication required.
127.0.0.1:6379> auth redis
OK
127.0.0.1:6379> set mykey lisi
OK
127.0.0.1:6379> get mykey
"lisi"

相关推荐