Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException:解決方法


  1.在自己的服務器中找到redis的配置文件 redis.conf

    使用命令vi redis.conf或vim redis.conf

    1.注釋掉127.0.0.1

 

 原因:bind 127.0.0.1生效,只能本機訪問redis

 

    2.將 protected-mode yes 改為:protected-mode no (原因:把yes改成no,允許外網訪問)

  

 

     3. /sbin/iptables -I INPUT -p tcp --dport 6379 -j ACCEPT

    redis默認端口號6379是不允許進行遠程連接的,所以在防火牆中設置6379開啟遠程服務;


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



猜您在找 Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to ;XX.XX.XX.XX:6379] with root cause Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to 106.xx.xxx229:6379 解決redis 報錯:Could not get a resource from the pool; nested exception is io.lettuce.core.RedisConnectionException redis 連接失敗問題報錯 Caused by: io.lettuce.core.RedisConnectionException: Unable to connect to 10.0.023.3:6379 redis問題解決 Caused by: io.lettuce.core.RedisException: io.lettuce.core.RedisConnectionException: DENIED Redis is running in protected mode because protected mode is enabled, no bind address was specifie [解決]spring-boot連接redis報連接超時問題Unable to connect to Redis; nested exception is io.lettuce.core.RedisCommandTimeoutException: Command timed out Redis報錯: Caused by: io.lettuce.core.RedisConnectionException: DENIED Redis is running in protected mode because protected mode is enabled, no bind address was specified, ... springboot2集成redis5報錯:io.lettuce.core.RedisException: io.lettuce.core.RedisConnectionException: DENIED Redis is running in protected 解決springboot連接Redis出現 Redis exception; nested exception is io.lettuce.core.RedisException: java.io.IOException: 遠程主機強迫關閉了 Redis:nested exception is io.lettuce.core.RedisException: java.io.IOException: 遠程主機強迫關閉了一個現有的連接
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM