./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.
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'