docker redis 修改密码
进入redis
[root@iZwz98nzsodcbigjqrrmxmZ ~]# docker exec -it redis bash
进入bin目录
root@1473acb2f8e7:/data# cd /usr/local/bin/
运行命令
root@1473acb2f8e7:/usr/local/bin# redis-cli
查看原有redis密码
//输入密码查看
127.0.0.1:6379> auth 123456
OK
127.0.0.1:6379> config get requirepass
设置 redis 密码
127.0.0.1:6379> config set requirepass *****