]> git.saurik.com Git - redis.git/blame - README
Cleaned up redis root directory and changed links for redis.io and github issues...
[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
e491a1a1 5documentation here: http://redis.io/documentation
d3207647 6
d3207647 7
8Building Redis
9--------------
10
11It is as simple as:
12
13 % make
14
15Redis is just a single binary, but if you want to install it you can use
c984d42f
TS
16the "make install" target that will copy the binary to /usr/local/bin
17by default. You can also use "make PREFIX=/some/other/directory install"
e1386503 18if you wish to use a different destination.
d3207647 19
20You can run a 32 bit Redis binary using:
21
22 % make 32bit
23
08c4b019 24After you build Redis is a good idea to test it (which require Tcl), using:
d3207647 25
26 % make test
27
0a802bd7 28
d3207647 29Running Redis
30-------------
31
32To run Redis with the default configuration just type:
33
34 % cd src
35 % ./redis-server
36
37If you want to provide your redis.conf, you have to run it using an additional
38parameter (the path of the configuration file):
39
40 % cd src
41 % ./redis-server /path/to/redis.conf
42
e491a1a1 43
d3207647 44Playing with Redis
45------------------
46
47You can use redis-cli to play with Redis. Start a redis-server instance,
48then in another terminal try the following:
49
50 % cd src
51 % ./redis-cli
52 redis> ping
53 PONG
54 redis> set foo bar
55 OK
56 redis> get foo
57 "bar"
58 redis> incr mycounter
59 (integer) 1
60 redis> incr mycounter
61 (integer) 2
62 redis>
63
64You can find the list of all the available commands here:
65
e491a1a1 66 http://redis.io/commands
d3207647 67
68Enjoy!