1.报错内容 2.解决方式 2.1修改redis.conf文件,在原本的bind 127.0.0.1的后面添加虚拟机IP地址 查看虚拟机ip地址的方式 ip addr 2.2 保证redis.conf 文件中protect-mode 后面是no 3.连接成功