Blame SOURCES/redis-pr3491.patch

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