Your Redis server is configured with a password apparently. Therefore, when using redis-cli, you'll need to issue the AUTH password
command before any other command or else you'll be getting that error message (replace password
with your server's password).
Alternatively, you can invoke redis-cli
with the -a
switch followed by your password for the same result.
To find the password of your server, open the Redis configuration file (by default /etc/redis/6379.conf
) and look for the line starting with requirepass
- whatever value is next to it, is the password.