-- 官网参数含义
https://raw.githubusercontent.com/antirez/redis/4.0/redis.conf
https://raw.githubusercontent.com/antirez/redis/3.2/redis.conf
https://raw.githubusercontent.com/antirez/redis/3.0/redis.conf
https://raw.githubusercontent.com/antirez/redis/2.8/redis.conf
1.redis 2.8.19 常用的配置
cat redis6380.conf daemonize yes bind 0.0.0.0 pidfile "/apps/run/redis/redis6380.pid" port 6380 tcp-backlog 511 timeout 300 tcp-keepalive 600 loglevel notice logfile "/apps/logs/redis/redis6380.log" databases 1 stop-writes-on-bgsave-error no rdbcompression yes rdbchecksum no dbfilename "dump6380.rdb" dir "/apps/dbdat/redis_data_6380" slave-serve-stale-data yes slave-read-only yes repl-disable-tcp-nodelay no slave-priority 100 maxmemory 10gb appendonly no appendfilename "appendonly6380.aof" appendfsync everysec no-appendfsync-on-rewrite yes auto-aof-rewrite-percentage 100 auto-aof-rewrite-min-size 64mb lua-time-limit 5000 slowlog-log-slower-than 10000 slowlog-max-len 128 notify-keyspace-events "" hash-max-ziplist-entries 512 hash-max-ziplist-value 64 list-max-ziplist-entries 512 list-max-ziplist-value 64 set-max-intset-entries 512 zset-max-ziplist-entries 128 zset-max-ziplist-value 64 activerehashing yes client-output-buffer-limit normal 512mb 256mb 60 client-output-buffer-limit slave 1gb 256mb 120 client-output-buffer-limit pubsub 32mb 8mb 60 repl-backlog-size 64mb hz 10 aof-rewrite-incremental-fsync yes rename-command FLUSHDB REDIS_FLUSHDB rename-command FLUSHALL REDIS_FLUSHALL rename-command KEYS REDIS_KEYS # Generated by CONFIG REWRITE slaveof 10.10.10.37 6380
                    
                
                
            
        
浙公网安备 33010602011771号