Could not connect to Redis at 192.168.0.129:6379: Connection refused
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Could not connect to Redis at 192.168.0.129:6379: Connection refused相关的知识,希望对你有一定的参考价值。
在虚拟机上(CentOS 6.7)本机连接自己的redis
[[email protected] 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的主要内容,如果未能解决你的问题,请参考以下文章
Connecting to 172.16.128.14:22...Could not connec
“psql: could not connect to server: Connection refused” Error when connecting to remote database(示例代
Idea 连接数据库出错Connection to xxx@localhost failed. [08001] Could not create connection to database
Could not connect to Redis at 192.168.0.129:6379: Connection refused