|
|
e5c076 |
From d68953c34d4d6987883ddf6158c3c69e7500667f Mon Sep 17 00:00:00 2001
|
|
|
e5c076 |
From: Remi Collet <fedora@famillecollet.com>
|
|
|
e5c076 |
Date: Thu, 8 Sep 2016 14:51:15 +0200
|
|
|
e5c076 |
Subject: [PATCH 1/3] 1st man pageis for - redis-cli - redis-benchmark -
|
|
|
e5c076 |
redis-check-aof - redis-check-rdb - redis-server - redis.conf
|
|
|
e5c076 |
|
|
|
e5c076 |
as redis-sentinel is a symlink to redis-server, same page can be used (also symlinked)
|
|
|
e5c076 |
redis.conf can also be used for sentinel.conf
|
|
|
e5c076 |
---
|
|
|
e5c076 |
man/man1/redis-benchmark.1 | 132 ++++++++++++++++++++++++++++
|
|
|
e5c076 |
man/man1/redis-check-aof.1 | 60 +++++++++++++
|
|
|
e5c076 |
man/man1/redis-check-rdb.1 | 53 ++++++++++++
|
|
|
e5c076 |
man/man1/redis-cli.1 | 171 +++++++++++++++++++++++++++++++++++++
|
|
|
e5c076 |
man/man1/redis-server.1 | 117 +++++++++++++++++++++++++
|
|
|
e5c076 |
man/man5/redis.conf.5 | 57 +++++++++++++
|
|
|
e5c076 |
6 files changed, 590 insertions(+)
|
|
|
e5c076 |
create mode 100644 man/man1/redis-benchmark.1
|
|
|
e5c076 |
create mode 100644 man/man1/redis-check-aof.1
|
|
|
e5c076 |
create mode 100644 man/man1/redis-check-rdb.1
|
|
|
e5c076 |
create mode 100644 man/man1/redis-cli.1
|
|
|
e5c076 |
create mode 100644 man/man1/redis-server.1
|
|
|
e5c076 |
create mode 100644 man/man5/redis.conf.5
|
|
|
e5c076 |
|
|
|
e5c076 |
diff --git a/man/man1/redis-benchmark.1 b/man/man1/redis-benchmark.1
|
|
|
e5c076 |
new file mode 100644
|
|
|
e5c076 |
index 0000000..a3e4c62
|
|
|
e5c076 |
--- /dev/null
|
|
|
e5c076 |
+++ b/man/man1/redis-benchmark.1
|
|
|
e5c076 |
@@ -0,0 +1,132 @@
|
|
|
e5c076 |
+.TH REDIS-BENCHMARK 1 "2016" "Redis" "User commands"
|
|
|
e5c076 |
+.SH NAME
|
|
|
e5c076 |
+redis\-benchmark \- Redis benchmark
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+.SH SYNOPSIS
|
|
|
e5c076 |
+.B redis\-benchmark
|
|
|
e5c076 |
+[ options ]
|
|
|
e5c076 |
+.LP
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+.SH DESCRIPTION
|
|
|
e5c076 |
+\fBRedis\fP is an open source (BSD licensed), in-memory data structure store,
|
|
|
e5c076 |
+used as database, cache and message broker, found at
|
|
|
e5c076 |
+.B http://redis.io/
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+The \fBredis\-benchmark\fP command is a command to benchmark redis-server.
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+.SH OPTIONS
|
|
|
e5c076 |
+.TP 15
|
|
|
e5c076 |
+.B \-h \fIhostname\fP
|
|
|
e5c076 |
+Server hostname (default: 127.0.0.1).
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-p \fIport\fP
|
|
|
e5c076 |
+Server port (default: 6379).
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-s \fIsocket\fP
|
|
|
e5c076 |
+Server socket (overrides hostname and port).
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-a \fIpassword\fP
|
|
|
e5c076 |
+Password to use when connecting to the server.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-c \fIclients\fP
|
|
|
e5c076 |
+Number of parallel connections (default 50)
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-dnnum \fIdb\fP
|
|
|
e5c076 |
+SELECT the specified db number (default 0)
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-k \fIboolean\fP
|
|
|
e5c076 |
+1=keep alive 0=reconnect (default 1)
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-r \fIkeyspacelen\fP
|
|
|
e5c076 |
+Use random keys for SET/GET/INCR, random values for SADD
|
|
|
e5c076 |
+Using this option the benchmark will expand the string __rand_int__
|
|
|
e5c076 |
+inside an argument with a 12 digits number in the specified range
|
|
|
e5c076 |
+from 0 to keyspacelen-1. The substitution changes every time a command
|
|
|
e5c076 |
+is executed. Default tests use this to hit random keys in the
|
|
|
e5c076 |
+specified range.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-P \fInumreq\fP
|
|
|
e5c076 |
+Pipeline <numreq> requests. Default 1 (no pipeline).
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-e
|
|
|
e5c076 |
+If server replies with errors, show them on stdout.
|
|
|
e5c076 |
+(no more than 1 error per second is displayed)
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-q
|
|
|
e5c076 |
+Quiet. Just show query/sec values
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-\-csv
|
|
|
e5c076 |
+Output in CSV format
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-l
|
|
|
e5c076 |
+Loop. Run the tests forever
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-t \fItests\fP
|
|
|
e5c076 |
+Only run the comma separated list of tests. The test
|
|
|
e5c076 |
+names are the same as the ones produced as output.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-I
|
|
|
e5c076 |
+Idle mode. Just open N idle connections and wait.
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+.SH EXAMPLES
|
|
|
e5c076 |
+.TP 5
|
|
|
e5c076 |
+Run the benchmark with the default configuration against 127.0.0.1:6379:
|
|
|
e5c076 |
+$ redis\-benchmark
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+Use 20 parallel clients, for a total of 100k requests, against 192.168.1.1:
|
|
|
e5c076 |
+$ redis-benchmark \-h 192.168.1.1 \-p 6379 \-n 100000 \-c 20
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+Fill 127.0.0.1:6379 with about 1 million keys only using the SET test:
|
|
|
e5c076 |
+$ redis\-benchmark \-t set \-n 1000000 \-r 100000000
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+Benchmark 127.0.0.1:6379 for a few commands producing CSV output:
|
|
|
e5c076 |
+$ redis\-benchmark \-t ping,set,get \-n 100000 \-\-csv
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+Benchmark a specific command line:
|
|
|
e5c076 |
+$ redis\-benchmark \-r 10000 \-n 10000 eval 'return redis.call("ping")' 0
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+Fill a list with 10000 random elements:
|
|
|
e5c076 |
+$ redis\-benchmark \-r 10000 \-n 10000 lpush mylist __rand_int__
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+On user specified command lines __rand_int__ is replaced with a random integer
|
|
|
e5c076 |
+with a range of values selected by the -r option.
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+.SH BUGS
|
|
|
e5c076 |
+See:
|
|
|
e5c076 |
+.PD 0
|
|
|
e5c076 |
+.B http://redis.io/support
|
|
|
e5c076 |
+and
|
|
|
e5c076 |
+.B https://github.com/antirez/redis/issues
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+.SH COPYRIGHT
|
|
|
e5c076 |
+Copyright \(co 2006\-2016
|
|
|
e5c076 |
+Salvatore Sanfilippo
|
|
|
e5c076 |
+.P
|
|
|
e5c076 |
+Redistribution and use in source and binary forms, with or without
|
|
|
e5c076 |
+modification, are permitted provided that the following conditions are met:
|
|
|
e5c076 |
+.TP 2
|
|
|
e5c076 |
+*
|
|
|
e5c076 |
+Redistributions of source code must retain the above copyright notice,
|
|
|
e5c076 |
+this list of conditions and the following disclaimer.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+*
|
|
|
e5c076 |
+Redistributions in binary form must reproduce the above copyright
|
|
|
e5c076 |
+notice, this list of conditions and the following disclaimer in the
|
|
|
e5c076 |
+documentation and/or other materials provided with the distribution.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+*
|
|
|
e5c076 |
+Neither the name of Redis nor the names of its contributors may be used
|
|
|
e5c076 |
+to endorse or promote products derived from this software without specific
|
|
|
e5c076 |
+prior written permission.
|
|
|
e5c076 |
+.P
|
|
|
e5c076 |
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
|
e5c076 |
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
|
e5c076 |
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
|
e5c076 |
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
|
|
e5c076 |
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
|
e5c076 |
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
|
e5c076 |
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
|
e5c076 |
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
e5c076 |
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
|
e5c076 |
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
e5c076 |
diff --git a/man/man1/redis-check-aof.1 b/man/man1/redis-check-aof.1
|
|
|
e5c076 |
new file mode 100644
|
|
|
e5c076 |
index 0000000..1569fd9
|
|
|
e5c076 |
--- /dev/null
|
|
|
e5c076 |
+++ b/man/man1/redis-check-aof.1
|
|
|
e5c076 |
@@ -0,0 +1,60 @@
|
|
|
e5c076 |
+.TH REDIS-CHECK-AOF 1 "2016" "Redis" "User commands"
|
|
|
e5c076 |
+.SH NAME
|
|
|
e5c076 |
+redis\-check\-aof \- Redis AOF file checker and repairer
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+.SH SYNOPSIS
|
|
|
e5c076 |
+.B redis\-check\-aof
|
|
|
e5c076 |
+[\-\-fix]
|
|
|
e5c076 |
+.IR file.aof
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+.SH DESCRIPTION
|
|
|
e5c076 |
+\fBRedis\fP is an open source (BSD licensed), in-memory data structure store,
|
|
|
e5c076 |
+used as database, cache and message broker, found at
|
|
|
e5c076 |
+.B http://redis.io/
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+The \fBredis\-check\-aof\fP command to check or repair redis-server AOF files.
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+.SH OPTIONS
|
|
|
e5c076 |
+.TP 15
|
|
|
e5c076 |
+.B \-\-fix
|
|
|
e5c076 |
+Fix the file
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+.SH BUGS
|
|
|
e5c076 |
+See:
|
|
|
e5c076 |
+.PD 0
|
|
|
e5c076 |
+.B http://redis.io/support
|
|
|
e5c076 |
+and
|
|
|
e5c076 |
+.B https://github.com/antirez/redis/issues
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+.SH COPYRIGHT
|
|
|
e5c076 |
+Copyright \(co 2006\-2016
|
|
|
e5c076 |
+Salvatore Sanfilippo
|
|
|
e5c076 |
+.P
|
|
|
e5c076 |
+Redistribution and use in source and binary forms, with or without
|
|
|
e5c076 |
+modification, are permitted provided that the following conditions are met:
|
|
|
e5c076 |
+.TP 2
|
|
|
e5c076 |
+*
|
|
|
e5c076 |
+Redistributions of source code must retain the above copyright notice,
|
|
|
e5c076 |
+this list of conditions and the following disclaimer.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+*
|
|
|
e5c076 |
+Redistributions in binary form must reproduce the above copyright
|
|
|
e5c076 |
+notice, this list of conditions and the following disclaimer in the
|
|
|
e5c076 |
+documentation and/or other materials provided with the distribution.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+*
|
|
|
e5c076 |
+Neither the name of Redis nor the names of its contributors may be used
|
|
|
e5c076 |
+to endorse or promote products derived from this software without specific
|
|
|
e5c076 |
+prior written permission.
|
|
|
e5c076 |
+.P
|
|
|
e5c076 |
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
|
e5c076 |
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
|
e5c076 |
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
|
e5c076 |
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
|
|
e5c076 |
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
|
e5c076 |
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
|
e5c076 |
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
|
e5c076 |
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
e5c076 |
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
|
e5c076 |
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
e5c076 |
diff --git a/man/man1/redis-check-rdb.1 b/man/man1/redis-check-rdb.1
|
|
|
e5c076 |
new file mode 100644
|
|
|
e5c076 |
index 0000000..0e798ab
|
|
|
e5c076 |
--- /dev/null
|
|
|
e5c076 |
+++ b/man/man1/redis-check-rdb.1
|
|
|
e5c076 |
@@ -0,0 +1,53 @@
|
|
|
e5c076 |
+.TH REDIS-CHECK-RDB 1 "2016" "Redis" "User commands"
|
|
|
e5c076 |
+.SH NAME
|
|
|
e5c076 |
+redis\-check\-aof \- Redis RDB file checker
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+.SH SYNOPSIS
|
|
|
e5c076 |
+.B redis\-check\-aof
|
|
|
e5c076 |
+.IR file.rdb
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+.SH DESCRIPTION
|
|
|
e5c076 |
+\fBRedis\fP is an open source (BSD licensed), in-memory data structure store,
|
|
|
e5c076 |
+used as database, cache and message broker, found at
|
|
|
e5c076 |
+.B http://redis.io/
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+The \fBredis\-check\-rdb\fP command to check redis-server RDB files.
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+.SH BUGS
|
|
|
e5c076 |
+See:
|
|
|
e5c076 |
+.PD 0
|
|
|
e5c076 |
+.B http://redis.io/support
|
|
|
e5c076 |
+and
|
|
|
e5c076 |
+.B https://github.com/antirez/redis/issues
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+.SH COPYRIGHT
|
|
|
e5c076 |
+Copyright \(co 2006\-2016
|
|
|
e5c076 |
+Salvatore Sanfilippo
|
|
|
e5c076 |
+.P
|
|
|
e5c076 |
+Redistribution and use in source and binary forms, with or without
|
|
|
e5c076 |
+modification, are permitted provided that the following conditions are met:
|
|
|
e5c076 |
+.TP 2
|
|
|
e5c076 |
+*
|
|
|
e5c076 |
+Redistributions of source code must retain the above copyright notice,
|
|
|
e5c076 |
+this list of conditions and the following disclaimer.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+*
|
|
|
e5c076 |
+Redistributions in binary form must reproduce the above copyright
|
|
|
e5c076 |
+notice, this list of conditions and the following disclaimer in the
|
|
|
e5c076 |
+documentation and/or other materials provided with the distribution.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+*
|
|
|
e5c076 |
+Neither the name of Redis nor the names of its contributors may be used
|
|
|
e5c076 |
+to endorse or promote products derived from this software without specific
|
|
|
e5c076 |
+prior written permission.
|
|
|
e5c076 |
+.P
|
|
|
e5c076 |
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
|
e5c076 |
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
|
e5c076 |
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
|
e5c076 |
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
|
|
e5c076 |
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
|
e5c076 |
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
|
e5c076 |
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
|
e5c076 |
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
e5c076 |
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
|
e5c076 |
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
e5c076 |
diff --git a/man/man1/redis-cli.1 b/man/man1/redis-cli.1
|
|
|
e5c076 |
new file mode 100644
|
|
|
e5c076 |
index 0000000..14f84df
|
|
|
e5c076 |
--- /dev/null
|
|
|
e5c076 |
+++ b/man/man1/redis-cli.1
|
|
|
e5c076 |
@@ -0,0 +1,171 @@
|
|
|
e5c076 |
+.TH REDIS-CLI 1 "2016" "Redis" "User commands"
|
|
|
e5c076 |
+.SH NAME
|
|
|
e5c076 |
+redis\-cli \- Redis client
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+.SH SYNOPSIS
|
|
|
e5c076 |
+.B redis\-cli
|
|
|
e5c076 |
+[ options ] [cmd [arg [arg ...]]]
|
|
|
e5c076 |
+.LP
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+.SH DESCRIPTION
|
|
|
e5c076 |
+\fBRedis\fP is an open source (BSD licensed), in-memory data structure store,
|
|
|
e5c076 |
+used as database, cache and message broker, found at
|
|
|
e5c076 |
+.B http://redis.io/
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+The \fBredis-cli\fP command is a command line client to redis-server.
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+.SH OPTIONS
|
|
|
e5c076 |
+.TP 15
|
|
|
e5c076 |
+.B \-h \fIhostname\fP
|
|
|
e5c076 |
+Server hostname (default: 127.0.0.1).
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-p \fIport\fP
|
|
|
e5c076 |
+Server port (default: 6379).
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-s \fIsocket\fP
|
|
|
e5c076 |
+Server socket (overrides hostname and port).
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-a \fIpassword\fP
|
|
|
e5c076 |
+Password to use when connecting to the server.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-r \fIrepeat\fP
|
|
|
e5c076 |
+Execute specified command N times.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-i \fIinterval\fP
|
|
|
e5c076 |
+When -r is used, waits \fIinterval\fP seconds per command.
|
|
|
e5c076 |
+It is possible to specify sub-second times like -i 0.1.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-n \fIdb\fP
|
|
|
e5c076 |
+Database number.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-x
|
|
|
e5c076 |
+Read last argument from STDIN.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-d \fIdelimiter\fP
|
|
|
e5c076 |
+Multi-bulk delimiter in for raw formatting (default: \n).
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-c
|
|
|
e5c076 |
+Enable cluster mode (follow -ASK and -MOVED redirections).
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-\-raw
|
|
|
e5c076 |
+Use raw formatting for replies (default when STDOUT is not a tty).
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-\-no\-raw
|
|
|
e5c076 |
+Force formatted output even when STDOUT is not a tty.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-\-csv
|
|
|
e5c076 |
+Output in CSV format.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-\-stat
|
|
|
e5c076 |
+Print rolling stats about server: mem, clients, ...
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-\-latency
|
|
|
e5c076 |
+Enter a special mode continuously sampling latency.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-\-latency\-history
|
|
|
e5c076 |
+Like \-\-latency but tracking latency changes over time.
|
|
|
e5c076 |
+Default time interval is 15 sec. Change it using -i.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-\-latency\-dist
|
|
|
e5c076 |
+Shows latency as a spectrum, requires xterm 256 colors.
|
|
|
e5c076 |
+Default time interval is 1 sec. Change it using -i.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-\-lru\-test
|
|
|
e5c076 |
+Simulate a cache workload with an 80-20 distribution.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-\-slave
|
|
|
e5c076 |
+Simulate a slave showing commands received from the master.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-\-rdb \fIfilename\fP
|
|
|
e5c076 |
+Transfer an RDB dump from remote server to local file.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-\-pipe
|
|
|
e5c076 |
+Transfer raw Redis protocol from stdin to server.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-\-pipe-timeout \fIn\fP
|
|
|
e5c076 |
+In --pipe mode, abort with error if after sending all data.
|
|
|
e5c076 |
+no reply is received within \fIn\fP seconds.
|
|
|
e5c076 |
+Default timeout: 30. Use 0 to wait forever.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-\-bigkeys
|
|
|
e5c076 |
+Sample Redis keys looking for big keys.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-\-scan
|
|
|
e5c076 |
+List all keys using the SCAN command.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-\-pattern \fIpat\fP
|
|
|
e5c076 |
+Useful with --scan to specify a SCAN pattern.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-\-intrinsic-latency \fIsec\fP
|
|
|
e5c076 |
+Run a test to measure intrinsic system latency.
|
|
|
e5c076 |
+The test will run for the specified amount of seconds.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-\-eval \fIfile\fP
|
|
|
e5c076 |
+Send an EVAL command using the Lua script at \fIfile\fP.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-\-ldb
|
|
|
e5c076 |
+Used with --eval enable the Redis Lua debugger.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-\-ldb-sync-mode
|
|
|
e5c076 |
+Like --ldb but uses the synchronous Lua debugger, in
|
|
|
e5c076 |
+this mode the server is blocked and script changes are
|
|
|
e5c076 |
+are not rolled back from the server memory.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-\-help
|
|
|
e5c076 |
+Output this help and exit.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-\-version
|
|
|
e5c076 |
+Output version and exit.
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+.SH EXAMPLES
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+cat /etc/passwd | redis-cli -x set mypasswd
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+redis-cli get mypasswd
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+redis-cli \-r 100 lpush mylist x
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+redis-cli \-r 100 \-i 1 info | grep used_memory_human:
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+redis-cli \-\-eval myscript.lua key1 key2 , arg1 arg2 arg3
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+redis-cli \-\-scan \-\-pattern '*:12345*'
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+.SH BUGS
|
|
|
e5c076 |
+See:
|
|
|
e5c076 |
+.PD 0
|
|
|
e5c076 |
+.B http://redis.io/support
|
|
|
e5c076 |
+and
|
|
|
e5c076 |
+.B https://github.com/antirez/redis/issues
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+.SH COPYRIGHT
|
|
|
e5c076 |
+Copyright \(co 2006\-2016
|
|
|
e5c076 |
+Salvatore Sanfilippo
|
|
|
e5c076 |
+.P
|
|
|
e5c076 |
+Redistribution and use in source and binary forms, with or without
|
|
|
e5c076 |
+modification, are permitted provided that the following conditions are met:
|
|
|
e5c076 |
+.TP 2
|
|
|
e5c076 |
+*
|
|
|
e5c076 |
+Redistributions of source code must retain the above copyright notice,
|
|
|
e5c076 |
+this list of conditions and the following disclaimer.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+*
|
|
|
e5c076 |
+Redistributions in binary form must reproduce the above copyright
|
|
|
e5c076 |
+notice, this list of conditions and the following disclaimer in the
|
|
|
e5c076 |
+documentation and/or other materials provided with the distribution.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+*
|
|
|
e5c076 |
+Neither the name of Redis nor the names of its contributors may be used
|
|
|
e5c076 |
+to endorse or promote products derived from this software without specific
|
|
|
e5c076 |
+prior written permission.
|
|
|
e5c076 |
+.P
|
|
|
e5c076 |
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
|
e5c076 |
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
|
e5c076 |
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
|
e5c076 |
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
|
|
e5c076 |
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
|
e5c076 |
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
|
e5c076 |
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
|
e5c076 |
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
e5c076 |
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
|
e5c076 |
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
e5c076 |
diff --git a/man/man1/redis-server.1 b/man/man1/redis-server.1
|
|
|
e5c076 |
new file mode 100644
|
|
|
e5c076 |
index 0000000..d6edd25
|
|
|
e5c076 |
--- /dev/null
|
|
|
e5c076 |
+++ b/man/man1/redis-server.1
|
|
|
e5c076 |
@@ -0,0 +1,117 @@
|
|
|
e5c076 |
+.TH REDIS-SERVER 1 "2016" "Redis" "User commands"
|
|
|
e5c076 |
+.SH NAME
|
|
|
e5c076 |
+redis\-server, redis\-sentinel \- Redis server
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+.SH SYNOPSIS
|
|
|
e5c076 |
+.B redis\-server
|
|
|
e5c076 |
+[
|
|
|
e5c076 |
+.IR configuration_file
|
|
|
e5c076 |
+] [ options ] [ \-\-sentinel ]
|
|
|
e5c076 |
+.LP
|
|
|
e5c076 |
+.B redis\-sentinel
|
|
|
e5c076 |
+[
|
|
|
e5c076 |
+.IR configuration_file
|
|
|
e5c076 |
+] [ options ]
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+.SH DESCRIPTION
|
|
|
e5c076 |
+\fBRedis\fP is an open source (BSD licensed), in-memory data structure store,
|
|
|
e5c076 |
+used as database, cache and message broker, found at
|
|
|
e5c076 |
+.B http://redis.io/
|
|
|
e5c076 |
+.LP
|
|
|
e5c076 |
+The \fBredis\-server\fP command is a command line to launch a Redis server.
|
|
|
e5c076 |
+.LP
|
|
|
e5c076 |
+The \fBredis\-sentinel\fP command is a symbolic link to the \fBredis\-server\fP
|
|
|
e5c076 |
+command which imply the \fB\-\-sentionel\fP option.
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+.SH OPTIONS
|
|
|
e5c076 |
+.TP 15
|
|
|
e5c076 |
+.B \-
|
|
|
e5c076 |
+Read configuration from stdin.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.TP 15
|
|
|
e5c076 |
+.B \-\-sentinel
|
|
|
e5c076 |
+Run in sentinel mode
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.B \-\-test-memory \fImegabytes\fP
|
|
|
e5c076 |
+Run a memory check and exit.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.PD 0
|
|
|
e5c076 |
+.B \-\-help
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.PD 1
|
|
|
e5c076 |
+.B \-h
|
|
|
e5c076 |
+Output this help and exit.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.PD 0
|
|
|
e5c076 |
+.B \-\-version
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+.PD 1
|
|
|
e5c076 |
+.B \-v
|
|
|
e5c076 |
+Output version and exit.
|
|
|
e5c076 |
+.P
|
|
|
e5c076 |
+All parameters described in \fBredis.conf\fR file can be passed as
|
|
|
e5c076 |
+command line option, e.g.
|
|
|
e5c076 |
+.B \-\-port
|
|
|
e5c076 |
+.IR port
|
|
|
e5c076 |
+.
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+.SH EXAMPLES
|
|
|
e5c076 |
+.TP 5
|
|
|
e5c076 |
+Run the server with default conf
|
|
|
e5c076 |
+redis-server
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+Run the server with a configuration file
|
|
|
e5c076 |
+redis-server /etc/redis/6379.conf
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+Run the server changing some default options
|
|
|
e5c076 |
+redis-server --port 7777 --slaveof 127.0.0.1 8888
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+Run the server with a configuration file and changing some options
|
|
|
e5c076 |
+redis-server /etc/myredis.conf --loglevel verbose
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+Run in sentinel mode
|
|
|
e5c076 |
+redis-server /etc/sentinel.conf --sentinel
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+.SH "SEE ALSO"
|
|
|
e5c076 |
+.PP
|
|
|
e5c076 |
+\fBredis.conf\fR(5)
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+.SH BUGS
|
|
|
e5c076 |
+See:
|
|
|
e5c076 |
+.PD 0
|
|
|
e5c076 |
+.B http://redis.io/support
|
|
|
e5c076 |
+and
|
|
|
e5c076 |
+.B https://github.com/antirez/redis/issues
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+.SH COPYRIGHT
|
|
|
e5c076 |
+Copyright \(co 2006\-2016
|
|
|
e5c076 |
+Salvatore Sanfilippo
|
|
|
e5c076 |
+.P
|
|
|
e5c076 |
+Redistribution and use in source and binary forms, with or without
|
|
|
e5c076 |
+modification, are permitted provided that the following conditions are met:
|
|
|
e5c076 |
+.TP 2
|
|
|
e5c076 |
+*
|
|
|
e5c076 |
+Redistributions of source code must retain the above copyright notice,
|
|
|
e5c076 |
+this list of conditions and the following disclaimer.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+*
|
|
|
e5c076 |
+Redistributions in binary form must reproduce the above copyright
|
|
|
e5c076 |
+notice, this list of conditions and the following disclaimer in the
|
|
|
e5c076 |
+documentation and/or other materials provided with the distribution.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+*
|
|
|
e5c076 |
+Neither the name of Redis nor the names of its contributors may be used
|
|
|
e5c076 |
+to endorse or promote products derived from this software without specific
|
|
|
e5c076 |
+prior written permission.
|
|
|
e5c076 |
+.P
|
|
|
e5c076 |
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
|
e5c076 |
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
|
e5c076 |
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
|
e5c076 |
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
|
|
e5c076 |
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
|
e5c076 |
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
|
e5c076 |
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
|
e5c076 |
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
e5c076 |
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
|
e5c076 |
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
e5c076 |
diff --git a/man/man5/redis.conf.5 b/man/man5/redis.conf.5
|
|
|
e5c076 |
new file mode 100644
|
|
|
e5c076 |
index 0000000..1e0c9c9
|
|
|
e5c076 |
--- /dev/null
|
|
|
e5c076 |
+++ b/man/man5/redis.conf.5
|
|
|
e5c076 |
@@ -0,0 +1,57 @@
|
|
|
e5c076 |
+.TH REDIS.CONF 5 "2016" "Redis" "Configuration files"
|
|
|
e5c076 |
+.SH NAME
|
|
|
e5c076 |
+redis.conf, sentinel.conf - redis server configuration files.
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+.SH PARAMETERS
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+All empty lines or lines beginning with '#' are ignored.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+See inline comments for parameters description.
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+.SH DESCRIPTION
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+\fBredis-server\fP read the configuration file passed as first argument.
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+.SH "SEE ALSO"
|
|
|
e5c076 |
+.PP
|
|
|
e5c076 |
+\fBredis\-server\fR(1)
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+.SH BUGS
|
|
|
e5c076 |
+See:
|
|
|
e5c076 |
+.PD 0
|
|
|
e5c076 |
+.B http://redis.io/support
|
|
|
e5c076 |
+and
|
|
|
e5c076 |
+.B https://github.com/antirez/redis/issues
|
|
|
e5c076 |
+
|
|
|
e5c076 |
+.SH COPYRIGHT
|
|
|
e5c076 |
+Copyright \(co 2006\-2016
|
|
|
e5c076 |
+Salvatore Sanfilippo
|
|
|
e5c076 |
+.P
|
|
|
e5c076 |
+Redistribution and use in source and binary forms, with or without
|
|
|
e5c076 |
+modification, are permitted provided that the following conditions are met:
|
|
|
e5c076 |
+.TP 2
|
|
|
e5c076 |
+*
|
|
|
e5c076 |
+Redistributions of source code must retain the above copyright notice,
|
|
|
e5c076 |
+this list of conditions and the following disclaimer.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+*
|
|
|
e5c076 |
+Redistributions in binary form must reproduce the above copyright
|
|
|
e5c076 |
+notice, this list of conditions and the following disclaimer in the
|
|
|
e5c076 |
+documentation and/or other materials provided with the distribution.
|
|
|
e5c076 |
+.TP
|
|
|
e5c076 |
+*
|
|
|
e5c076 |
+Neither the name of Redis nor the names of its contributors may be used
|
|
|
e5c076 |
+to endorse or promote products derived from this software without specific
|
|
|
e5c076 |
+prior written permission.
|
|
|
e5c076 |
+.P
|
|
|
e5c076 |
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
|
e5c076 |
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
|
e5c076 |
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
|
e5c076 |
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
|
|
e5c076 |
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
|
e5c076 |
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
|
e5c076 |
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
|
e5c076 |
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
e5c076 |
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
|
e5c076 |
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
e5c076 |
--
|
|
|
e5c076 |
2.24.1
|
|
|
e5c076 |
|