您的位置:首页 > 数据库 > Redis

Could not connect to Redis at xxx.xxx.xxx.xxx:6379: Connection refused

2017-11-20 12:36 671 查看
开发发来消息说测试环境的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所在的服务器的地址


  
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐