在redis.conf文件中注释掉如下这行,让其他主机也可以连上redis:

bind 127.0.0.1  表示只允许本机连接redis

redis 配置允许其他主机可以远程连接redis_redis