当前位置:网站首页>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
边栏推荐
- 二、并发、测试笔记 青训营笔记
- leanote私有云笔记搭建
- Jenkins远程构建项目超时的问题
- Kbu1510-asemi power supply special 15A rectifier bridge kbu1510
- pytest+allure+jenkins安装问题:pytest: error: unrecognized arguments: --alluredir
- UWB learning 1
- gslx680触摸屏驱动源码码分析(gslX680.c)
- Common method signatures and meanings of Iterable, collection and list
- Regular e-commerce problems part1
- vus. Precautions for SSR requesting data in asyndata function
猜你喜欢

【webrtc】m98 screen和window采集

1142_ SiCp learning notes_ Functions and processes created by functions_ Linear recursion and iteration

聊聊异步编程的 7 种实现方式
![[mathematical notes] radian](/img/43/2af510adb24fe46fc0033d11d60488.jpg)
[mathematical notes] radian

【斯坦福计网CS144项目】Lab4: TCPConnection

Write CPU yourself -- Chapter 9 -- learning notes

Jenkins remote build project timeout problem

Why should we understand the trend of spot gold?
![[P2P] local packet capturing](/img/4e/e1b60e74bc4c44e453cc832283a1f4.png)
[P2P] local packet capturing

idea添加类注释模板和方法模板
随机推荐
242. Bipartite graph determination
为什么要了解现货黄金走势?
《动手学深度学习》(四) -- 卷积神经网络 CNN
测试周期被压缩?教你9个方法去应对
gatk4中的interval是什么??
图解GPT3的工作原理
【斯坦福计网CS144项目】Lab3: TCPSender
[SUCTF 2019]Game
CentOS7下安装PostgreSQL11数据库
1141_ SiCp learning notes_ Functions abstracted as black boxes
[UTCTF2020]file header
KBU1510-ASEMI电源专用15A整流桥KBU1510
3、 High quality programming and performance tuning practical youth training camp notes
Talk about seven ways to realize asynchronous programming
Bi she - college student part-time platform system based on SSM
电商常规问题part1
Few-Shot Learning && Meta Learning:小样本学习原理和Siamese网络结构(一)
外包干了三年,废了...
idea添加类注释模板和方法模板
【性能压测】如何做好性能压测?