[fix]使用本地的redis

This commit is contained in:
wangqx 2025-08-16 15:29:12 +08:00
parent 311727a874
commit fd06e105bb
2 changed files with 2 additions and 28 deletions

View File

@ -105,9 +105,9 @@ spring:
spring.data: spring.data:
redis: redis:
# 地址 # 地址
host: 82.156.121.2 host: 192.168.1.65
# 端口默认为6379 # 端口默认为6379
port: 26379 port: 16379
# 数据库索引 # 数据库索引
database: 0 database: 0
# 密码(如没有密码请注释掉) # 密码(如没有密码请注释掉)

View File

@ -1,28 +1,2 @@
# redis 密码
requirepass ruoyi123
# key 监听器配置
# notify-keyspace-events Ex
# 配置持久化文件存储路径
dir /redis/data
# 配置rdb
# 15分钟内有至少1个key被更改则进行快照
save 900 1
# 5分钟内有至少10个key被更改则进行快照
save 300 10
# 1分钟内有至少10000个key被更改则进行快照
save 60 10000
# 开启压缩
rdbcompression yes
# rdb文件名 用默认的即可
dbfilename dump.rdb
# 开启aof
appendonly yes
# 文件名
appendfilename "appendonly.aof"
# 持久化策略,no:不同步,everysec:每秒一次,always:总是同步,速度比较慢
# appendfsync always
appendfsync everysec
# appendfsync no