The Debian system comes with a redis version of 2.4,ubuntu with a version of 2.8, which is not the latest version of 3.0.2 and has to be compiled by hand. The process is as follows:
Install the Build Package
sudo apt-get install build-essential
Download source code
To the Redis home page Download the latest version of the source code, the current version is 3.0.2:http://download.redis.io/releases/redis-3.0.2.tar.gz
Compile
Fortunately, Redis is a pure C development, also do not rely on any special library, extracted directly after the compilation can.
tar xvf redis-3.0.2.tar.gzcd redis-3.0.2makemake test
Installation
The software under General Linux is used after compilingmake install, but usually the so-called installation simply copies files to the path directory, and does not register redis-server as a system service. Fortunately, we use Debian/ubuntu is a privilege! Redis provides a tool to help you register your system services after installation.
sudo make installcd utilssudo ./install_server.sh
According to the prompt to fill in the default port, log path, configuration file path, but did not let us fill in the name of the system service, the default name is redis_6379, I still like the service called Redis-server, so need to execute the following code:
sudo mv /etc/init.d/redis{_6379,-server}
This allowssudo service redis-server restartthe Redis server to be managed.
Test
$ redis-cli PINGPONG
Debian Wheezy Installing Redis 3.0