Redis 登陆 与 修改密码(一)
//设置密码 redis 127.0.0.1:6379> config set requirepass test123 //查询密码: 127.0.0.1:6379> config get requirepass (error) ERR operation not permitted //登陆,密码验证: 127.0.0.1:6379> auth test123 OK //再次查询: 127.0.0.1:6379> config get requirepass 1) "requirepass" 2) "test123"