码迷,mamicode.com
首页 > 其他好文 > 详细

Could not connect to Redis at 192.168.0.129:6379: Connection refused

时间:2017-05-28 10:00:13      阅读:343      评论:0      收藏:0      [点我收藏+]

标签:use   文件   refused   centos   could not   ted   ref   family   连接   

在虚拟机上(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

标签:use   文件   refused   centos   could not   ted   ref   family   连接   

原文地址:http://www.cnblogs.com/winner-0715/p/6914870.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!