1.找到redis.conf文件 vim redis.conf 2.找到bind 127.0.0.1 默认是打开的; 注释 bind 127.0.0.1 换成 bind 0.0.0.0 3.重启redis服务