<b>QuickStart: Contents</b><br> <ahref="#Obtain the latest version">Obtain the latest version</a><br> <ahref="#Compile">Compile</a><br> <ahref="#Run the server">Run the server</a><br> <ahref="#Play with the built in client">Play with the built in client</a><br> <ahref="#Further reading">Further reading</a>
= Quick Start =<br/><br/>This quickstart is a five minutes howto on how to get started with Redis. For more information on Redis check <ahref="http://code.google.com/p/redis/wiki/index"target="_blank">Redis Documentation Index</a>.<h2><aname="Obtain the latest version">Obtain the latest version</a></h2>The latest stable source distribution of Redis can be obtained <ahref="http://code.google.com/p/redis/downloads/list"target="_blank">at this location as a tarball</a>.<br/><br/><preclass="codeblock python"name="code">
</pre>The unstable source code, with more features but not ready for production, can be downloaded using git:<br/><br/><preclass="codeblock python python"name="code">
$ git clone git://github.com/antirez/redis.git
</pre><h2><aname="Compile">Compile</a></h2>Redis can be compiled in most <ahref="SupportedPlatforms.html">POSIX systems</a>. To compile Redis just untar the tar.gz, enter the directly and type 'make'.<br/><br/><preclass="codeblock python python python"name="code">
$ tar xvzf redis-1.02.tar.gz
$ cd redis-1.02
$ make
</pre>In order to test if the Redis server is working well in your computer make sure to run <codename="code"class="python">make test</code> and check that all the tests are passed.<h2><aname="Run the server">Run the server</a></h2>Redis can run just fine without a configuration file (when executed without a config file a standard configuration is used). To run Redis just type the following command:<br/><br/><preclass="codeblock python python python python"name="code">
$ ./redis-server
</pre>With the <ahref="Configuration.html">default configuration</a> Redis will log to the standard output so you can check what happens. Later, you can <ahref="Configuration.html">change the default settings</a>.<h2><aname="Play with the built in client">Play with the built in client</a></h2>Redis ships with a command line client that is automatically compiled when you ran <codename="code"class="python">make</code> and it is called <codename="code"class="python">redis-cli</code>For instance to set a key and read back the value use the following:<br/><br/><preclass="codeblock python python python python python"name="code">
$ ./redis-cli set mykey somevalue
OK
$ ./redis-cli get mykey
somevalue
</pre>What about adding elements to a <ahref="Lists.html">list</a>:<br/><br/><preclass="codeblock python python python python python python"name="code">
</pre><h2><aname="Further reading">Further reading</a></h2><ul><li> What to play more with Redis? Read <ahref="IntroductionToRedisDataTypes.html">Fifteen minutes introduction to Redis data types</a>.</li><li> Check all the <ahref="Features.html">Features</a></li><li> Read the full list of available commands in the <ahref="CommandReference.html">Command Reference</a>.</li><li> Start using Redis from your <ahref="SupportedLanguages.html">favorite language</a>.</li><li> Take a look at some <ahref="ProgrammingExamples.html">Programming Examples</a>. </li></ul>