1. 程式人生 > >redis 拒絕遠端訪問解決

redis 拒絕遠端訪問解決

遠端訪問redis報錯:

org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to 10.134.253.30:6379

 

解決:

vi redis.conf

1、註釋掉 bind 127.0.0.1,即可讓所有ip訪問
2、protected-mode no