-
|
说明:通过 Docker 部署系统是有说明如何对 Redis 进行运行参数配置说明,在使用 JAR 文件部署并无提及; |
Beta Was this translation helpful? Give feedback.
Answered by
ruibaby
May 18, 2026
Replies: 1 comment 2 replies
-
|
在 application.yaml 的写法: spring:
data:
redis:
host: localhost # Redis 服务地址
port: 6379 # Redis 服务端口
database: 0 # Redis 数据库
password: "" # Redis 密码;无密码可留空或直接删除此项
halo:
session:
store-type: redis # session 存储方式,默认不配置则为 in-memory
redis:
enabled: true # 启用 Redis 服务文档中其实写了 application.yaml 的配置格式:https://docs.halo.run/getting-started/install/config#%E9%80%9A%E8%BF%87%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6 但可能下面的参数没有具体示例,后续看看能不能优化下文档格式。 |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
CATOOILG
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在 application.yaml 的写法:
文档中其实写了 application.yaml 的配置格式:https://docs.halo.run/getting-started/install/config#%E9%80%9A%E8%BF%87%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6
但可能下面的参数没有具体示例,后续看看能不能优化下文档格式。