#本地连接直接使用bash命令 设置了密码 用-a加密码方式访问[root@apg-server ~]# docker exec -it redis redis-cli -a 123456Warning:Usinga password with'-a'or'-u'option on the command line interface maynotbe safe.#set一个key测试127.0.0.1:6379>set name xiaomianyangOK#查询该key127.0.0.1:6379>...