**
连接不上阿里云连接不上redis,报错org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to ip:637
1、修改redis中配置文件redis.conf,设置protected-mode no,将bind 127.0.0.1注释起来。如下图:
2、输入/sbin/iptables -I INPUT -p tcp --dport 6379 -j ACCEPT将6379端口加入防火墙中。
连接不上的小伙伴们可以尝试一下