-
redis.conf
confacllog-max-len 128 requirepass 密码 lazyfree-lazy-eviction no lazyfree-lazy-expire no lazyfree-lazy-server-del no replica-lazy-flush no lazyfree-lazy-user-del no lazyfree-lazy-user-flush no oom-score-adj no oom-score-adj-values 0 200 800 disable-thp yes appendonly no appendfilename "appendonly.aof" appendfsync everysec no-appendfsync-on-rewrite no auto-aof-rewrite-percentage 100 auto-aof-rewrite-min-size 64mb aof-load-truncated yes aof-use-rdb-preamble yes lua-time-limit 5000 slowlog-log-slower-than 10000 slowlog-max-len 128 latency-monitor-threshold 0 notify-keyspace-events "" hash-max-ziplist-entries 512 hash-max-ziplist-value 64 list-max-ziplist-size -2 list-compress-depth 0 set-max-intset-entries 512 zset-max-ziplist-entries 128 zset-max-ziplist-value 64 -
docker-compose.yml
ymlversion: '3' services: redis: image: redis:8.4.0 container_name: redis_all ports: - 6379:6379 volumes: - ./redis.conf:/etc/redis/redis.conf - ./data:/data restart: always privileged: true # 获取宿主机root权限 command: ["redis-server","/etc/redis/redis.conf"] # 指定配置文件启动redis-server进程 -
docker compose up -d
docker-compose安装Redis
宋情写2026-01-18 15:23
相关推荐
梦梦代码精4 小时前
连锁品牌数字化:从门店扩张到用户资产运营的技术底座InfinitePlus7 小时前
Docker MySQL搭建一主一从坐吃山猪10 小时前
Docker07-MySQLWzx19801210 小时前
python沙箱和docker沙箱你选对了吗?CodeDevMaster10 小时前
关于PaddleOCR-VL部署与使用说明Kismet_nvi10 小时前
《Kubernetes Service 进阶、kube-proxy 与 Ingress 实战精要》Ghost Face...12 小时前
龙芯Docker全流程:安装到离线迁移实战Crazy________12 小时前
Redis03:持久化存储,大key分析,主从复制及哨兵模式2401_8346369913 小时前
从零吃透 K8s 网络:ServiceIngressMetalLB 实操手册范什么特西13 小时前
redis题目面渣重点