第一步: 安全组配置 6379:
redis 阿里云配置连接

第二步:
配置 redis.conf
首先 :
屏蔽

#bind 127.0.0.1

否则 会无法
JedisConnectionException : Connection refused: connect

第三步:
将 redis.conf 的 protected mode 设置为 yes

protected mode yes

否则会报错 DENIED Redis is running in protected mode because protected mode is enabled…

相关文章: