# Docker 环境:数据目录使用可写卷 /data(勿与只读挂载的 conf 目录混用) dir /data requirepass 123456 # Windows 卷权限异常时避免阻塞写入(验证码、会话等依赖 Redis 写) stop-writes-on-bgsave-error no