renren-api启用redis的无法连接redis

提问 4 1574
tompson
tompson 2018-07-10
版本:renren-security 3.1 开发环境:
使用renren-api模块,这是我的redis配置,但是连不上,感觉系统没有读取这部分的参数,请@Mark指导一下 redis: database: 0 host: xx.xx.xx.xx port: 6379 password: # 密码(默认为空) timeout: 6000 # 连接超时时长(毫秒) pool: max-active: 1000 # 连接池最大连接数(使用负值表示没有限制) max-wait: 5000 # 连接池最大阻塞等待时间(使用负值表示没有限制) max-idle: 10 # 连接池中的最大空闲连接 min-idle: 5 # 连接池中的最小空闲连接
回帖
  • 配置没有问题,是报错了还是什么原因
    0 回复
  • tompson
    tompson (楼主)
    2018-07-10
    就是连不上,org.springframework.data.redis.RedisConnectionFailureException: Cannot get Jedis connection; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
    0 回复
  • @tompson redis没问题吧,可以通过客户端访问吗
    0 回复
  • 我也遇到这个问题@Mark我自己配写了个测试类不通过aplication.yaml能连上
    0 回复