1 Where to find complete Redis documentation?
2 -------------------------------------------
4 This README is just a fast "quick start" document. You can find more detailed
5 documentation at http://redis.io
14 You can run a 32 bit Redis binary using:
18 After building Redis is a good idea to test it, using:
22 NOTE: if after building Redis with a 32 bit target you need to rebuild it
23 with a 64 bit target you need to perform a "make clean" in the root
24 directory of the Redis distribution.
29 Selecting a non-default memory allocator when building Redis is done by setting
30 the `MALLOC` environment variable. Redis is compiled and linked against libc
31 malloc by default, with the exception of jemalloc being the default on Linux
32 systems. This default was picked because jemalloc has proven to have fewer
33 fragmentation problems than libc malloc.
35 To force compiling against libc malloc, use:
39 To compile against jemalloc on Mac OS X systems, use:
41 % make MALLOC=jemalloc
46 Redis will build with a user friendly colorized output by default.
47 If you want to see a more verbose output use the following:
54 To run Redis with the default configuration just type:
59 If you want to provide your redis.conf, you have to run it using an additional
60 parameter (the path of the configuration file):
63 % ./redis-server /path/to/redis.conf
65 It is possible to alter the Redis configuration passing parameters directly
66 as options using the command line. Examples:
68 % ./redis-server --port 9999 --slaveof 127.0.0.1 6379
69 % ./redis-server /etc/redis/6379.conf --loglevel debug
71 All the options in redis.conf are also supported as options using the command
72 line, with exactly the same name.
77 You can use redis-cli to play with Redis. Start a redis-server instance,
78 then in another terminal try the following:
94 You can find the list of all the available commands here:
96 http://redis.io/commands
101 In order to install Redis binaries into /usr/local/bin just use:
105 You can use "make PREFIX=/some/other/directory install" if you wish to use a
106 different destination.
108 Make install will just install binaries in your system, but will not configure
109 init scripts and configuration files in the appropriate place. This is not
110 needed if you want just to play a bit with Redis, but if you are installing
111 it the proper way for a production system, we have a script doing this
112 for Ubuntu and Debian systems:
117 The script will ask you a few questions and will setup everything you need
118 to run Redis properly as a background daemon that will start again on
121 You'll be able to stop and start Redis using the script named
122 /etc/init.d/redis_<portnumber>, for instance /etc/init.d/redis_6379.