]> git.saurik.com Git - redis.git/blame - README
Fixed two bugs in the CLUSTER SETSLOT ... NODE subcommand
[redis.git] / README
CommitLineData
d3207647 1Where to find complete Redis documentation?
2-------------------------------------------
3
4This README is just a fast "quick start" document. You can find more detailed
5documentation here:
6
71) http://code.google.com/p/redis
82) Check the 'doc' directory. doc/README.html is a good starting point :)
9
10Building Redis
11--------------
12
13It is as simple as:
14
15 % make
16
17Redis is just a single binary, but if you want to install it you can use
c984d42f
TS
18the "make install" target that will copy the binary to /usr/local/bin
19by default. You can also use "make PREFIX=/some/other/directory install"
e1386503 20if you wish to use a different destination.
d3207647 21
22You can run a 32 bit Redis binary using:
23
24 % make 32bit
25
08c4b019 26After you build Redis is a good idea to test it (which require Tcl), using:
d3207647 27
28 % make test
29
0a802bd7 30Buliding using tcmalloc
31-----------------------
32
fc413451 33tcmalloc is a fast and space efficient implementation (for little objects)
c984d42f 34of malloc(). Compiling Redis with it can improve performance and memory
fc413451 35usage. You can read more about it here:
36
37http://goog-perftools.sourceforge.net/doc/tcmalloc.html
0a802bd7 38
c984d42f 39In order to compile Redis with tcmalloc support, install tcmalloc on your system
0a802bd7 40and then use:
41
42 % make USE_TCMALLOC=yes
43
44Note that you can pass any other target to make, as long as you append
45USE_TCMALLOC=yes at the end.
46
d3207647 47Running Redis
48-------------
49
50To run Redis with the default configuration just type:
51
52 % cd src
53 % ./redis-server
54
55If you want to provide your redis.conf, you have to run it using an additional
56parameter (the path of the configuration file):
57
58 % cd src
59 % ./redis-server /path/to/redis.conf
60
61Playing with Redis
62------------------
63
64You can use redis-cli to play with Redis. Start a redis-server instance,
65then in another terminal try the following:
66
67 % cd src
68 % ./redis-cli
69 redis> ping
70 PONG
71 redis> set foo bar
72 OK
73 redis> get foo
74 "bar"
75 redis> incr mycounter
76 (integer) 1
77 redis> incr mycounter
78 (integer) 2
79 redis>
80
81You can find the list of all the available commands here:
82
83 http://code.google.com/p/redis/wiki/CommandReference
84
85Enjoy!
86