mirror of
				https://github.com/continew-org/continew-admin.git
				synced 2025-11-04 09:01:37 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			30 lines
		
	
	
		
			669 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			669 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
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
 |