]> git.saurik.com Git - redis.git/blame - README
Makefile typo fixed for tcmalloc option
[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
18the "make install" target that will copy the binary in /usr/local/bin
e1386503
PM
19for default. You can also use "make PREFIX=/some/other/directory install"
20if you wish to use a different destination.
d3207647 21
22You can run a 32 bit Redis binary using:
23
24 % make 32bit
25
26After you build Redis is a good idea to test it, using:
27
28 % make test
29
0a802bd7 30Buliding using tcmalloc
31-----------------------
32
33tcmalloc is a fast and space efficient implementation of malloc(). Compiling
34Redis with it can improve performances and memeory usage. You can read
35more about it here: http://goog-perftools.sourceforge.net/doc/tcmalloc.html
36
37In order to compile Redis with tcmalloc support install tcmalloc on your system
38and then use:
39
40 % make USE_TCMALLOC=yes
41
42Note that you can pass any other target to make, as long as you append
43USE_TCMALLOC=yes at the end.
44
d3207647 45Running Redis
46-------------
47
48To run Redis with the default configuration just type:
49
50 % cd src
51 % ./redis-server
52
53If you want to provide your redis.conf, you have to run it using an additional
54parameter (the path of the configuration file):
55
56 % cd src
57 % ./redis-server /path/to/redis.conf
58
59Playing with Redis
60------------------
61
62You can use redis-cli to play with Redis. Start a redis-server instance,
63then in another terminal try the following:
64
65 % cd src
66 % ./redis-cli
67 redis> ping
68 PONG
69 redis> set foo bar
70 OK
71 redis> get foo
72 "bar"
73 redis> incr mycounter
74 (integer) 1
75 redis> incr mycounter
76 (integer) 2
77 redis>
78
79You can find the list of all the available commands here:
80
81 http://code.google.com/p/redis/wiki/CommandReference
82
83Enjoy!
84