redis login server (error) NOAUTH Authentication required.

created at 12-31-2021 views: 118

problem

./redis-cli -h 127.0.0.1 -p 6379 -a [password]

When I use this command to log in, and then select the specified library

select 0

It prompts

(error) NOAUTH Authentication required.

solution

If there is an authentication problem, the authentication password should be set, just enter the password For example, the password is aaa, when there is an authentication problem, just enter auth 'aaa'

Just use auth'password'

created at:12-31-2021
edited at: 12-31-2021: