当前位置:网站首页>解决问题: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 #连接超时时间(毫秒)
配置完这些参数即可使用
边栏推荐
- 四、高性能 Go 语言发行版优化与落地实践 青训营笔记
- [ANSYS] learning experience of APDL finite element analysis
- 海思芯片(hi3516dv300)uboot镜像生成过程详解
- @component(““)
- JS get all date or time stamps between two time stamps
- After 95, Alibaba P7 published the payroll: it's really fragrant to make up this
- Detailed explanation of neo4j installation process
- 三、高质量编程与性能调优实战 青训营笔记
- idea添加类注释模板和方法模板
- A concurrent rule verification implementation
猜你喜欢
Leetcode-206. Reverse Linked List
ASEMI整流桥RS210参数,RS210规格,RS210封装
English translation is too difficult? I wrote two translation scripts with crawler in a rage
Summary of customer value model (RFM) technology for data analysis
IO流 file
Calculus key and difficult points record part integral + trigonometric function integral
知识点滴 - 关于苹果认证MFI
C language (high-level) data storage + Practice
深度学习花书+机器学习西瓜书电子版我找到了
身边35岁程序员如何建立起技术护城河?
随机推荐
2022-07-06:以下go语言代码是否会panic?A:会;B:不会。 package main import “C“ func main() { var ch chan struct
1140_ SiCp learning notes_ Use Newton's method to solve the square root
电商常规问题part1
UWB learning 1
Outsourcing for four years, abandoned
图解GPT3的工作原理
在线直播系统源码,使用ValueAnimator实现view放大缩小动画效果
Wechat applet full stack development practice Chapter 3 Introduction and use of APIs commonly used in wechat applet development -- 3.10 tabbar component (I) how to open and use the default tabbar comp
IPv4 exercises
JS plot flot application - simple curve
Convolutional neural network -- understanding of pooling
leanote私有云笔记搭建
【数学笔记】弧度
Implementing data dictionary with JSP custom tag
Flutter riverpod is comprehensively and deeply analyzed. Why is it officially recommended?
Is the test cycle compressed? Teach you 9 ways to deal with it
[GUET-CTF2019]虚假的压缩包
Build personal website based on flask
Wx is used in wechat applet Showtoast() for interface interaction
pytorch 参数初始化