redis裝在linux虛擬機上,在xshell上可以成功訪問redis,配了密碼
拿了老師完整的代碼作測試,就是訪問失敗,不知道哪里出了問題
地址端口密碼都沒錯的,求解
org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to 192.168.43.52:6379
Caused by: io.lettuce.core.RedisConnectionException: Unable to connect to 192.168.43.52:6379
Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information: /192.168.43.52:6379
Caused by: java.net.ConnectException: Connection refused: no further information