请选择 进入手机版 | 继续访问电脑版
设为首页收藏本站

一起开发

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

redis里redis.conf配置

发表于 2015-12-14 15:49 作者:phper
php结合memcache实现访问统计文章点击的计数
随着访问量的增大,点击数直接更新数据库已经不太可能了,数据库中点击的更新 ...
Web开发利器,简版开发手册助您快速开发(图
web开发,帮助手册是我们经常查询的,查函数、查属性等等,下面图片里综合了各开发手册 ...
  1. daemonize no
  2. pidfile /var/run/redis-7000.pid
  3. port 7000
  4. tcp-backlog 511
  5. timeout 0
  6. tcp-keepalive 0
  7. loglevel notice
  8. logfile ""
  9. databases 16
  10. save 900 1
  11. save 300 10
  12. save 60 10000
  13. stop-writes-on-bgsave-error yes
  14. rdbcompression yes
  15. rdbchecksum yes
  16. dbfilename dump_7000.rdb
  17. dir /home/web/
  18. slave-serve-stale-data yes
  19. slave-read-only yes
  20. repl-diskless-sync no
  21. repl-diskless-sync-delay 5
  22. repl-disable-tcp-nodelay no
  23. slave-priority 100
  24. appendonly no
  25. appendfilename "appendonly-7000.aof"
  26. daemonize no
  27. pidfile /var/run/redis-7000.pid
  28. port 7000
  29. tcp-backlog 511
  30. timeout 0
  31. tcp-keepalive 0
  32. loglevel notice
  33. logfile ""
  34. databases 16
  35. save 900 1
  36. save 300 10
  37. save 60 10000
  38. stop-writes-on-bgsave-error yes
  39. rdbcompression yes
  40. rdbchecksum yes
  41. dbfilename dump_7000.rdb
  42. dir /home/web/
  43. slave-serve-stale-data yes
  44. slave-read-only yes
  45. repl-diskless-sync no
  46. repl-diskless-sync-delay 5
  47. repl-disable-tcp-nodelay no
  48. slave-priority 100
  49. appendonly no
  50. appendfilename "appendonly-7000.aof"
  51. appendfsync everysec
  52. no-appendfsync-on-rewrite no
  53. auto-aof-rewrite-percentage 100
  54. auto-aof-rewrite-min-size 64mb
  55. aof-load-truncated yes
  56. lua-time-limit 5000
  57. slowlog-log-slower-than 10000
  58. slowlog-max-len 128
  59. latency-monitor-threshold 0
  60. notify-keyspace-events ""
  61. hash-max-ziplist-entries 512
  62. hash-max-ziplist-value 64
  63. list-max-ziplist-entries 512
  64. list-max-ziplist-value 64
  65. set-max-intset-entries 512
  66. zset-max-ziplist-entries 128
  67. zset-max-ziplist-value 64
  68. hll-sparse-max-bytes 3000
  69. activerehashing yes
  70. client-output-buffer-limit normal 0 0 0
  71. client-output-buffer-limit slave 256mb 64mb 60
  72. client-output-buffer-limit pubsub 32mb 8mb 60
  73. hz 10
  74. aof-rewrite-incremental-fsync yes
  75. #custom
  76. loglevel warning
  77. #debug/verbose/notice/warning
  78. logfile /var/log/redis-7000.log
  79. bind 192.168.0.10
复制代码
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

Archiver|手机版|一起开发   

GMT+8, 2017-9-23 20:51 , Processed in 0.105351 second(s), 24 queries .

Powered by Discuz! X2.5 Licensed

© 2001-2012 Comsenz Inc.

回顶部