首页 > 代码库 > Could not connect to Redis at 192.168.0.129:6379: Connection refused
Could not connect to Redis at 192.168.0.129:6379: Connection refused
在虚拟机上(CentOS 6.7)本机连接自己的redis
[root@localhost bin]# ./redis-cli -h 192.168.0.129 -p 6379
Could not connect to Redis at 192.168.0.129:6379: Connection refused
Could not connect to Redis at 192.168.0.129:6379: Connection refused
not connected>
查看配置文件,发现bind是写成:
bind 127.0.0.1
修改配置为
bind 127.0.0.1 192.168.0.129
192.168.0.129是redis所在的服务器的地址
Could not connect to Redis at 192.168.0.129:6379: Connection refused
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。