开源项目
文档
企业版
微服务
低代码
公告
登入
注册
renren-api启用redis的无法连接redis
提问
4
1574
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 # 连接池中的最小空闲连接
回帖
Mark
管理员
2018-07-10
配置没有问题,是报错了还是什么原因
0
回复
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
回复
Mark
管理员
2018-07-10
@tompson redis没问题吧,可以通过客户端访问吗
0
回复
面壁者
VIP1
2018-08-20
我也遇到这个问题@Mark我自己配写了个测试类不通过aplication.yaml能连上
0
回复
提交回复
官方产品
renren-security企业版
renren-cloud微服务
renren-lowcode低代码平台
开源项目
更新日志
renren-security
文档
/
源码
/
演示
renren-fast
文档
/
前端源码
/
后端源码
/
演示
renren-generator
源码
微信扫码并关注“人人开源”
获得项目最新动态及更新提醒