Programster's Blog

Tutorials focusing on Linux, programming, and open source

Debian 8 - Install Redis Server

The easiest way to install a Redis server is to just run

sudo apt-get install redis-server -y

Unfortunately, this will only install version 2.8.17 which doesn't have the features in 3.0+.

Manually Install Redis 3+

Redis 3.0 introduces Redis Cluster, a distributed implementation of Redis with automatic data sharding and fault tolerance, important speed improvements under certain workloads, improved AOF rewriting, and more.

Here's how to manually install the latest version.

sudo apt-get update
sudo apt-get install build-essential -y

tar xzf redis-stable.tar.gz
cd redis-stable
sudo apt-get install tcl8.5 -y
# optionally run "make test" to check everything is ok
sudo make install

Redis is now installed. To configure redis to run as a background daemon run a script that came bundled with the files

cd utils
sudo ./

You will be prompted for configuration values, but you may want to just press return to accept the defaults.


Check Version

redis-server --version

Manage The Service

sudo service redis_6379 [start | stop | restart]

Start the Management Console