更新时间:2022-06-24 07:46:10
试试这个:
在您的 redis 配置文件中搜索上面的行以检查您是否设置了密码:
search for the line above in your on the redis config file to check if you have a password set:
requirepass foobared
如果该行没有被注释掉,那么你需要这样做:
If that line is not commented out, then you need to do this:
$redis-cli redis 127.0.0.1:6379> AUTH foobared
OK