当前位置:网站首页>解决问题:Unable to connect to Redis
解决问题:Unable to connect to Redis
2022-07-07 04:16:00 【Charter1】
错因:无法连接到redis
最近在使用springboot整合redis时,出现的错误:
Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to localhost:6379
解决:需要到springboot配置文件中配置一些相关参数去连接Redis
spring:
redis:
host: 192.168.1.1 #服务器地址 你服务器或本机地址
port: 6379 #连接端口
database: 0 #数据库索引,默认0
password: 123456 #密码
jedis:
pool:
max-active: 8 #连接池最大连接数(使用负值表示没有限制)
max-wait: -1 #最大阻塞等待时间(使用负值表示没有限制)
max-idle: 8 #最大空闲连接数
min-idle: 0 #最小空闲连接数
timeout: 5000 #连接超时时间(毫秒)
配置完这些参数即可使用
边栏推荐
- Convolutional neural network -- understanding of pooling
- [SUCTF 2019]Game
- [performance pressure test] how to do a good job of performance pressure test?
- What is the difference between TCP and UDP?
- @component(““)
- leetcode:105. 从前序与中序遍历序列构造二叉树
- 普通测试年薪15w,测试开发年薪30w+,二者差距在哪?
- Differences between H5 architecture and native architecture
- 外包干了四年,废了...
- 2022-07-06: will the following go language codes be panic? A: Meeting; B: No. package main import “C“ func main() { var ch chan struct
猜你喜欢
IO流 file
About some details of final, I have something to say - learn about final CSDN creation clock out from the memory model
1140_ SiCp learning notes_ Use Newton's method to solve the square root
Deep learning Flower Book + machine learning watermelon book electronic version I found
2022-07-06:以下go语言代码是否会panic?A:会;B:不会。 package main import “C“ func main() { var ch chan struct
The configuration that needs to be modified when switching between high and low versions of MySQL 5-8 (take aicode as an example here)
Initial experience of teambiion network disk (Alibaba cloud network disk)
Talk about seven ways to realize asynchronous programming
Dynamics CRM server deployment - restore database prompt: the database is in use
《动手学深度学习》(四) -- 卷积神经网络 CNN
随机推荐
按键精灵采集学习-矿药采集及跑图
【数学笔记】弧度
resource 创建包方式
三、高质量编程与性能调优实战 青训营笔记
leanote私有云笔记搭建
【斯坦福计网CS144项目】Lab4: TCPConnection
[Linux] process control and parent-child processes
Determining the full type of a variable
[2022 ACTF]web题目复现
普通测试年薪15w,测试开发年薪30w+,二者差距在哪?
海思芯片(hi3516dv300)uboot镜像生成过程详解
After 95, the CV engineer posted the payroll and made up this. It's really fragrant
Outsourcing for three years, abandoned
Implementing data dictionary with JSP custom tag
07_ Handout on the essence and practical skills of text measurement and geometric transformation
面试结束后,被面试官在朋友圈吐槽了......
【leetcode】1020. Number of enclaves
A concurrent rule verification implementation
URP - shaders and materials - simple lit
gslx680触摸屏驱动源码码分析(gslX680.c)