当前位置:网站首页>Problem solving: unable to connect to redis
Problem solving: unable to connect to redis
2022-07-07 07:47:00 【Charter1】
Cause of error : Can't connect to redis
Recently in use springboot Integrate redis when , Errors occurred :
Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to localhost:6379
solve : Need to springboot Configure some relevant parameters in the configuration file to connect Redis
spring:
redis:
host: 192.168.1.1 # Server address Your server or local address
port: 6379 # Connection port
database: 0 # Database index , Default 0
password: 123456 # password
jedis:
pool:
max-active: 8 # Maximum number of connections in connection pool ( Use a negative value to indicate that there is no limit )
max-wait: -1 # Maximum blocking waiting time ( Use a negative value to indicate that there is no limit )
max-idle: 8 # Maximum number of free connections
min-idle: 0 # Minimum number of idle connections
timeout: 5000 # Connection timeout ( millisecond )
After configuring these parameters, you can use
边栏推荐
- 三、高质量编程与性能调优实战 青训营笔记
- Interviewer: what development models do you know?
- 毕设-基于SSM大学生兼职平台系统
- Rxjs - observable doesn't complete when an error occurs - rxjs - observable doesn't complete when an error occurs
- Simple example of ros2 planning system plansys2
- Button wizard collection learning - mineral medicine collection and running map
- 【Liunx】进程控制和父子进程
- After 95, the CV engineer posted the payroll and made up this. It's really fragrant
- JSON introduction and JS parsing JSON
- 4、 High performance go language release optimization and landing practice youth training camp notes
猜你喜欢
buuctf misc USB
IO stream file
leetcode:105. Constructing binary trees from preorder and inorder traversal sequences
解决问题:Unable to connect to Redis
2022-07-06:以下go语言代码是否会panic?A:会;B:不会。 package main import “C“ func main() { var ch chan struct
JSON introduction and JS parsing JSON
The configuration that needs to be modified when switching between high and low versions of MySQL 5-8 (take aicode as an example here)
[webrtc] m98 Screen and Window Collection
3、 High quality programming and performance tuning practical youth training camp notes
知识点滴 - 关于苹果认证MFI
随机推荐
[mathematical notes] radian
IO流 file
微博发布案例
gslx680触摸屏驱动源码码分析(gslX680.c)
Robot technology innovation and practice old version outline
2、 Concurrent and test notes youth training camp notes
After 95, the CV engineer posted the payroll and made up this. It's really fragrant
直播平台源码,可折叠式菜单栏
Zhilian + AV, AITO asked M7 to do more than ideal one
[Stanford Jiwang cs144 project] lab4: tcpconnection
Weibo publishing cases
微信小程序中使用wx.showToast()进行界面交互
解决:Could NOT find KF5 (missing: CoreAddons DBusAddons DocTools XmlGui)
[GUET-CTF2019]虚假的压缩包
3、 High quality programming and performance tuning practical youth training camp notes
基于Flask搭建个人网站
外包幹了三年,廢了...
【webrtc】m98 screen和window采集
07_ Handout on the essence and practical skills of text measurement and geometric transformation
Talk about seven ways to realize asynchronous programming