终端输入
redis-cli -h 127.0.0.1 -a 'password'
127.0.0.1:6379> config set requirepass test123
127.0.0.1:6379> auth test123