Problem
After upgrading Redis to 6.0.5, connecting with redis-cli threw this error:
| |
Starting from Redis 6.0, the default configuration binds to specific network interfaces, and protected-mode defaults to yes, which blocks even localhost connections.
Solution
Edit redis.conf and adjust two settings:
| |
Restart Redis after making the changes and connections should work again.
Note
This is fine for development environments. For production, keep protected-mode yes and use password authentication or firewall rules to control access instead.
