小编bug*_*com的帖子

ping远程redis主机时redis“没有到主机的路由”

我正在设置 Resque 服务器,并且必须第一次设置 Redis。当使用 redis-cli ping 远程服务器时,我收到“No route to host”错误,但是当我直接 ping 远程服务器时,它返回正常。由于我从来没有在服务器上处理过很多 redis 或就此问题进行过很多幕后工作,因此我不确定接下来要做什么。

[root@ss03-dev-worker bin]# redis-cli -h 10.176.x.yyy ping
Could not connect to Redis at 10.176.x.yyy:6379: No route to host

[root@ss03-dev-worker bin]# ping 10.176.x.yyy
PING 10.176.x.yyy (10.176.x.yyy) 56(84) bytes of data.
64 bytes from 10.176.x.yyy: icmp_seq=1 ttl=61 time=2.09 ms
64 bytes from 10.176.x.yyy: icmp_seq=2 ttl=61 time=0.812 ms
64 bytes from 10.176.x.yyy: icmp_seq=3 ttl=61 time=0.508 ms
^C
--- 10.176.x.yyy ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, …
Run Code Online (Sandbox Code Playgroud)

redis

4
推荐指数
1
解决办法
1万
查看次数

标签 统计

redis ×1