Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Turbo码先生
redis
提交
f95b3936
R
redis
项目概览
Turbo码先生
/
redis
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
redis
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f95b3936
编写于
2月 04, 2013
作者:
S
Salvatore Sanfilippo
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #928 from davidcelis/unstable
Fix a few typos and improve grammar of redis.conf
上级
74f4f298
81144645
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
20 addition
and
20 deletion
+20
-20
redis.conf
redis.conf
+20
-20
未找到文件。
redis.conf
浏览文件 @
f95b3936
...
...
@@ -39,8 +39,8 @@ port 6379
# Close the connection after a client is idle for N seconds (0 to disable)
timeout
0
# S
et server verbosity to 'debug'
#
it
can be one of:
# S
pecify the server verbosity level.
#
This
can be one of:
# debug (a lot of information, useful for development/testing)
# verbose (many rarely useful info, but not a mess like the debug level)
# notice (moderately verbose, what you want in production probably)
...
...
@@ -59,7 +59,7 @@ logfile stdout
# Specify the syslog identity.
# syslog-ident redis
# Specify the syslog facility.
Must be USER or between LOCAL0-LOCAL7.
# Specify the syslog facility. Must be USER or between LOCAL0-LOCAL7.
# syslog-facility local0
# Set the number of databases. The default database is DB 0, you can select
...
...
@@ -114,7 +114,7 @@ stop-writes-on-bgsave-error yes
# the dataset will likely be bigger if you have compressible values or keys.
rdbcompression
yes
# Since ver
is
on 5 of RDB a CRC64 checksum is placed at the end of the file.
# Since ver
si
on 5 of RDB a CRC64 checksum is placed at the end of the file.
# This makes the format more resistant to corruption but there is a performance
# hit to pay (around 10%) when saving and loading RDB files, so you can disable it
# for maximum performances.
...
...
@@ -131,7 +131,7 @@ dbfilename dump.rdb
# The DB will be written inside this directory, with the filename specified
# above using the 'dbfilename' configuration directive.
#
#
Also the Append Only File will
be created inside this directory.
#
The Append Only File will also
be created inside this directory.
#
# Note that you must specify a directory here, not a file name.
dir
./
...
...
@@ -152,7 +152,7 @@ dir ./
#
# masterauth <master-password>
# When a slave los
t the
connection with the master, or when the replication
# When a slave los
es its
connection with the master, or when the replication
# is still in progress, the slave can act in two different ways:
#
# 1) if slave-serve-stale-data is set to 'yes' (the default) the slave will
...
...
@@ -230,14 +230,14 @@ slave-priority 100
#
# It is possible to change the name of dangerous commands in a shared
# environment. For instance the CONFIG command may be renamed into something
#
of hard to guess so that it will be still available for internal-use
#
tools
but not available for general clients.
#
hard to guess so that it will still be available for internal-use tools
# but not available for general clients.
#
# Example:
#
# rename-command CONFIG b840fc02d524045429941cc15f59e41cb7be6c52
#
# It is also possible to completely kill a command renaming it into
# It is also possible to completely kill a command
by
renaming it into
# an empty string:
#
# rename-command CONFIG ""
...
...
@@ -281,7 +281,7 @@ slave-priority 100
# maxmemory <bytes>
# MAXMEMORY POLICY: how Redis will select what to remove when maxmemory
# is reached
? You can select among five behavior
:
# is reached
. You can select among five behaviors
:
#
# volatile-lru -> remove the key with an expire set using an LRU algorithm
# allkeys-lru -> remove any key accordingly to the LRU algorithm
...
...
@@ -290,7 +290,7 @@ slave-priority 100
# volatile-ttl -> remove the key with the nearest expire time (minor TTL)
# noeviction -> don't expire at all, just return an error on write operations
#
# Note: with a
ll the kind of
policies, Redis will return an error on write
# Note: with a
ny of the above
policies, Redis will return an error on write
# operations, when there are not suitable keys for eviction.
#
# At the date of writing this commands are: set setnx setex append
...
...
@@ -346,7 +346,7 @@ appendonly no
# always: fsync after every write to the append only log . Slow, Safest.
# everysec: fsync only one time every second. Compromise.
#
# The default is "everysec" that's usually the right compromise between
# The default is "everysec"
, as
that's usually the right compromise between
# speed and data safety. It's up to you to understand if you can relax this to
# "no" that will let the operating system flush the output buffer when
# it wants, for better performances (but if you can live with the idea of
...
...
@@ -374,9 +374,9 @@ appendfsync everysec
# that will prevent fsync() from being called in the main process while a
# BGSAVE or BGREWRITEAOF is in progress.
#
# This means that while another child is saving the durability of Redis is
# the same as "appendfsync none"
, that in practical term
s means that it is
# possible to los
t
up to 30 seconds of log in the worst scenario (with the
# This means that while another child is saving
,
the durability of Redis is
# the same as "appendfsync none"
. In practical terms, thi
s means that it is
# possible to los
e
up to 30 seconds of log in the worst scenario (with the
# default Linux settings).
#
# If you have latency problems turn this to "yes". Otherwise leave it as
...
...
@@ -385,10 +385,10 @@ no-appendfsync-on-rewrite no
# Automatic rewrite of the append only file.
# Redis is able to automatically rewrite the log file implicitly calling
# BGREWRITEAOF when the AOF log size
will growth
by the specified percentage.
# BGREWRITEAOF when the AOF log size
grows
by the specified percentage.
#
# This is how it works: Redis remembers the size of the AOF file after the
# latest rewrite (
or if no rewrite
happened since the restart, the size of
# latest rewrite (
if no rewrite has
happened since the restart, the size of
# the AOF at startup is used).
#
# This base size is compared to the current size. If the current size is
...
...
@@ -423,7 +423,7 @@ lua-time-limit 5000
################################ REDIS CLUSTER ###############################
#
# Normal Redis instances can't be part of a Redis Cluster
,
only nodes that are
# Normal Redis instances can't be part of a Redis Cluster
;
only nodes that are
# started as cluster nodes can. In order to start a Redis instance as a
# cluster node enable the cluster support uncommenting the following:
#
...
...
@@ -589,7 +589,7 @@ activerehashing yes
# Instead there is a default limit for pubsub and slave clients, since
# subscribers and slaves receive data in a push fashion.
#
# Both the hard or the soft limit can be disabled
just setting it
to zero.
# Both the hard or the soft limit can be disabled
by setting them
to zero.
client
-
output
-
buffer
-
limit
normal
0
0
0
client
-
output
-
buffer
-
limit
slave
256
mb
64
mb
60
client
-
output
-
buffer
-
limit
pubsub
32
mb
8
mb
60
...
...
@@ -598,7 +598,7 @@ client-output-buffer-limit pubsub 32mb 8mb 60
# closing connections of clients in timeot, purging expired keys that are
# never requested, and so forth.
#
# Not all tasks are perfor
em
d with the same frequency, but Redis checks for
# Not all tasks are perfor
me
d with the same frequency, but Redis checks for
# tasks to perform accordingly to the specified "hz" value.
#
# By default "hz" is set to 10. Raising the value will use more CPU when
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录