SSM社区小牛软件之家首页投稿(暂停使用,暂停投稿)

redis入门就是这么简单

2016-06-17  本文已影响63726人  慕凌峰

一、Redis简介

</br>

1、Redis基本介绍

Redis中文网



</br>

2、Redis安装

Redis下载
Redis各版本安装教程

</br>



</br>

3、Redis配置

Redis配置说明

</br>


  1. ""
  2. "pidfile"
  3. "/var/run/redis.pid"
  4. "maxmemory"
  5. "0"
  6. "maxmemory-samples"
  7. "3"
  8. "timeout"
  9. "0"
  10. "tcp-keepalive"
  11. "0"
  12. "auto-aof-rewrite-percentage"
  13. "100"
  14. "auto-aof-rewrite-min-size"
  15. "67108864"
  16. "hash-max-ziplist-entries"
  17. "512"
  18. "hash-max-ziplist-value"
  19. "64"
  20. "list-max-ziplist-entries"
  21. "512"
  22. "list-max-ziplist-value"
  23. "64"
  24. "set-max-intset-entries"
  25. "512"
  26. "zset-max-ziplist-entries"
  27. "128"
  28. "zset-max-ziplist-value"
  29. "64"
  30. "hll-sparse-max-bytes"
  31. "3000"
  32. "lua-time-limit"
  33. "5000"
  34. "slowlog-log-slower-than"
  35. "10000"
  36. "latency-monitor-threshold"
  37. "0"
  38. "slowlog-max-len"
  39. "128"
  40. "port"
  41. "6379"
  42. "tcp-backlog"
  43. "511"
  44. "databases"
  45. "16"
  46. "repl-ping-slave-period"
  47. "10"
  48. "repl-timeout"
  49. "60"
  50. "repl-backlog-size"
  51. "1048576"
  52. "repl-backlog-ttl"
  53. "3600"
  54. "maxclients"
  55. "4064"
  56. "watchdog-period"
  57. "0"
  58. "slave-priority"
  59. "100"
  60. "min-slaves-to-write"
  61. "0"
  62. "min-slaves-max-lag"
  63. "10"
  64. "hz"
  65. "10"
  66. "no-appendfsync-on-rewrite"
  67. "no"
  68. "slave-serve-stale-data"
  69. "yes"
  70. "slave-read-only"
  71. "yes"
  72. "stop-writes-on-bgsave-error"
  73. "yes"
  74. "daemonize"
  75. "no"
  76. "rdbcompression"
  77. "yes"
  78. "rdbchecksum"
  79. "yes"
  80. "activerehashing"
  81. "yes"
  82. "repl-disable-tcp-nodelay"
  83. "no"
  84. "aof-rewrite-incremental-fsync"
  85. "yes"
  86. "appendonly"
  87. "no"
  88. "dir"
  89. "/home/deepak/Downloads/redis-2.8.13/src"
  90. "maxmemory-policy"
  91. "volatile-lru"
  92. "appendfsync"
  93. "everysec"
  94. "save"
  95. "3600 1 300 100 60 10000"
  96. "loglevel"
  97. "notice"
  98. "client-output-buffer-limit"
  99. "normal 0 0 0 slave 268435456 67108864 60 pubsub 33554432 8388608 60"
  100. "unixsocketperm"
  101. "0"
  102. "slaveof"
  103. ""
  104. "notify-keyspace-events"
  105. ""
  106. "bind"
  107. ""
```

</br>


</br>

4、参数说明

redis.conf 配置项说明如下:
Redis配置参数说明

</br>


redis配置文件 redis.confredis.windows.conf

** daemonize no**

Redis默认配置文件中提供了三个条件:

save 900 1
save 300 10
save 60 10000
分别表示900秒(15分钟)内有1个更改,300秒(5分钟)内有10个更改以及60秒内有10000个更改。

上一篇 下一篇

猜你喜欢

热点阅读