Why is it that after I changed the Redis password in the configuration file, I am unable to connect using the new password, but I can still connect with the original one?

However, when I manage to connect successfully and then run config get requirepass, the result shows the updated password.

Redis Redis changing password is invalid, but the original password can still be used

The version I am using is Redis 7.0.15

redis.conf

#bind 127.0.0.1 -::1
port 6379
daemonize yes
logfile "./redis.log"
masterauth "testpasswd123"
requirepass "testpasswd123"

Execute command record

redis-server /opt/redis-7.0.15/redis.conf  
redis-cli -a passwdtest123
redis-cli  -a fujianz123 config get requirepass 
redis-cli  -a fujianz123 config get requirepass

Complete configuration file [redis.txt](https://github.com/user-attachments/files/16766230/redis.txt)

Comment From: sundb

@qumingzhentmdnan did you restart Redis after changing the configuration file?

Comment From: qumingzhentmdnan

@qumingzhentmdnan did you restart Redis after changing the configuration file?

yes,I restarted Redis after modifying the configuration file, but for some reason (maybe it was my mistake), the changes didn't take effect. Now I've reinstalled Redis, which has solved the problem. Thank you very much for your help.