Unable to connect to 10.x报错

Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to 10.xxx:xxx
路径端口没问题

org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to 10.xx:xx
    at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$SharedConnection.getNativeConnection(LettuceConnectionFactory.java:966)
Caused by: io.lettuce.core.RedisConnectionException: Unable to connect to 10.xx:xx
Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /10.xx:xx
Caused by: java.net.ConnectException: Connection refused

无法连接到redis,服务器之间是否通的,有没有防火墙呢,ping一下或者 telnet一下试试看