当前位置:网站首页>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
边栏推荐
- Common method signatures and meanings of Iterable, collection and list
- Mutual conversion between InputStream, int, shot, long and byte arrays
- Jenkins remote build project timeout problem
- Few-Shot Learning && Meta Learning:小样本学习原理和Siamese网络结构(一)
- 毕设-基于SSM大学生兼职平台系统
- MobaXterm
- [P2P] local packet capturing
- vus.SSR在asynData函数中请求数据的注意事项
- 07_ Handout on the essence and practical skills of text measurement and geometric transformation
- Operation suggestions for today's spot Silver
猜你喜欢
【p2p】本地抓包
IPv4 exercises
通信设备商,到底有哪些岗位?
毕设-基于SSM大学生兼职平台系统
What are the positions of communication equipment manufacturers?
Write CPU yourself -- Chapter 9 -- learning notes
Bi she - college student part-time platform system based on SSM
A concurrent rule verification implementation
resource 创建包方式
1142_ SiCp learning notes_ Functions and processes created by functions_ Linear recursion and iteration
随机推荐
How can a 35 year old programmer build a technological moat?
Route jump in wechat applet
Interviewer: what development models do you know?
BGP experiment (1)
知识点滴 - 关于苹果认证MFI
Operation suggestions for today's spot Silver
idea添加类注释模板和方法模板
Make a bat file for cleaning system garbage
[UTCTF2020]file header
A bit of knowledge - about Apple Certified MFI
Robot technology innovation and practice old version outline
[UTCTF2020]file header
解决:Could NOT find KF5 (missing: CoreAddons DBusAddons DocTools XmlGui)
buuctf misc USB
Zhilian + AV, AITO asked M7 to do more than ideal one
Live broadcast platform source code, foldable menu bar
Technology cloud report: from robot to Cobot, human-computer integration is creating an era
Button wizard script learning - about tmall grabbing red envelopes
Simple example of ros2 planning system plansys2
A concurrent rule verification implementation