完善:完善 README 文档开始及部署部分内容,增加 GitHub Actions 配置实现服务自动部署

This commit is contained in:
2022-12-11 23:50:14 +08:00
parent 79891e8b5a
commit 53aa3510db
7 changed files with 229 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
bind 0.0.0.0
# redis 密码
requirepass 123456
# key 监听器配置
# notify-keyspace-events Ex
# 配置持久化文件存储路径
dir ../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

View File

@@ -0,0 +1 @@
Redis 数据存储目录,请确保赋予了读写权限,否则将无法写入数据