开发发来消息说测试环境的redis无法登录:
# redis-cli -p 6379 -h xxx.xxx.xxx.xxx Could not connect to Redis at xxx.xxx.xxx.xxx:6379: Connection refused Could not connect to Redis at xxx.xxx.xxx.xxx:6379: Connection refused not connected> exit
看了一下配置文件,发现bind的配置为:
bind 127.0.0.1
修改一下配置文件即可:
bind 127.0.0.1 xxx.xxx.xxx.xxx #xxx.xxx.xxx.xxx是redis所在的服务器的地址