1、把防火墙禁用掉

2、redis.conf配置文件,注释掉bind 127.0.0.1

3、重启redis服务