出现认证问题,是因为redis设置了认证密码。
启动后输入下面命令

127.0.0.1:6379> auth yourpassword

我的密码是redis123

127.0.0.1:6379> set name hello
(error) NOAUTH Authentication required.
127.0.0.1:6379> (error) NOAUTH Authentication required.
(error) ERR unknown command '(error)'
127.0.0.1:6379> auth redis123
ok

在这里插入图片描述

就可以正常操作redis了。

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐