redis安装

redis安装
wget http://download.redis.io/releases/redis-3.0.6.tar.gz
tar -zxf redis-3.0.6.tar.gz
mv redis-3.0.6 /usr/local/redis
cd /usr/local/redis/
grep  -n "^[a-Z\[]" /usr/local/redis/redis.conf
    42:daemonize yes
    46:pidfile /var/run/redis.pid
    50:port 6379
    59:tcp-backlog 511
    79:timeout 300
    95:tcp-keepalive 0
    103:loglevel notice
    108:logfile "6379.log"
    123:databases 16
    147:save 900 1
    148:save 300 10
    149:save 60 10000
    164:stop-writes-on-bgsave-error yes
    170:rdbcompression yes
    179:rdbchecksum yes
    182:dbfilename dump.rdb
    192:dir ./
    230:slave-serve-stale-data yes
    246:slave-read-only yes
    277:repl-diskless-sync no
    289:repl-diskless-sync-delay 5
    322:repl-disable-tcp-nodelay no
    359:slave-priority 100
    429:maxclients 50000
    455:maxmemory 3221225472
    479:maxmemory-policy volatile-lru
    512:appendonly no
    516:appendfilename "appendonly.aof"
    543:appendfsync no
    564:no-appendfsync-on-rewrite yes
    583:auto-aof-rewrite-percentage 100
    584:auto-aof-rewrite-min-size 64mb
    608:aof-load-truncated yes
    626:lua-time-limit 5000
    754:slowlog-log-slower-than 10000
    758:slowlog-max-len 128
    779:latency-monitor-threshold 0
    825:notify-keyspace-events ""
    832:hash-max-ziplist-entries 512
    833:hash-max-ziplist-value 64
    838:list-max-ziplist-entries 512
    839:list-max-ziplist-value 64
    846:set-max-intset-entries 512
    851:zset-max-ziplist-entries 128
    852:zset-max-ziplist-value 64
    866:hll-sparse-max-bytes 3000
    886:activerehashing yes
    921:client-output-buffer-limit normal 0 0 0
    922:client-output-buffer-limit slave 256mb 64mb 60
    923:client-output-buffer-limit pubsub 32mb 8mb 60
    940:hz 10
    946:aof-rewrite-incremental-fsync yes
/usr/local/redis/src/redis-server /usr/local/redis/redis.conf

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值