Redis 一些问题

关闭Linux防火墙

找到redis 配置文件 注释 #bind 127.0.0.1

修改 protected-mode yes 改为no

如果报:NOAUTH Authentication required错误就是设置了密码

auth 你的密码

配置Redis

复制代码
spring.redis.host=192.168.44.132 
spring.redis.port=6379
spring.redis.database= 0
spring.redis.timeout=1800000
spring.redis.lettuce.pool.max-active=20
spring.redis.lettuce.pool.max-wait=-1
#spring.redis.password=你设置的redis密码,没有可以不写

#最大阻塞等待时间(负数表示没限制)
spring.redis.lettuce.pool.max-idle=5
spring.redis.lettuce.pool.min-idle=0
相关推荐
daad77716 分钟前
wifi_note
运维·服务器·数据库
xixingzhe239 分钟前
Mysql统计空间增量
数据库·mysql
程序员萌萌1 小时前
Redis的缓存机制和淘汰策略详解
数据库·redis·缓存机制·淘汰策略
不剪发的Tony老师2 小时前
SQLite 3.53.0版本发布,重要更新
数据库·sqlite
Bczheng12 小时前
九.Berkeley DB数据库 序列化和钱包管理(1)
数据库
cozil2 小时前
记录mysql创建数据库未指定字符集引发的问题及解决方法
数据库·mysql
架构师老Y2 小时前
013、数据库性能优化:索引、查询与连接池
数据库·python·oracle·性能优化·架构
AC赳赳老秦2 小时前
OpenClaw数据库高效操作指南:MySQL/PostgreSQL批量处理与数据迁移实战
大数据·数据库·mysql·elasticsearch·postgresql·deepseek·openclaw
一 乐2 小时前
校园线上招聘|基于springboot + vue校园线上招聘系统(源码+数据库+文档)
java·数据库·vue.js·spring boot·论文·毕设·校园线上招聘系统
liliangcsdn2 小时前
如何基于sentence_transformers构建向量计算工具
数据库·人工智能·全文检索