---
description: This page has the instructions to install Redis on Debian.
---

# Install Redis

## Install:

Download the stable version, compile and install it.

```bash
wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
make -j2
sudo make install
```

## Run:

To start the redis server call from a terminal:

```bash
redis-server
```

{% hint style="info" %}
The terminal session must be kept alive for the database, you may want to use a screen session and run the redis-server there.
{% endhint %}

```bash
screen -S redis-screen
redis-server
# Detach the session: Control + a + d
```

## References:

* Redis: [https://redis.io/](https://redis.io/) &#x20;

