redis.md 1.42 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
# Install Redis on old distributions

GitLab requires at least Redis 2.8. The following guide is for Debian 7 and
Ubuntu 12.04. If you are using Debian 8 or Ubuntu 14.04 and up, follow the
[installation guide](installation.md).

## Install Redis 2.8 in Debian 7

Redis 2.8 is included in the Debian Wheezy [backports] repository.

1. Edit `/etc/apt/sources.list` and add the following line:

    ```
    deb http://http.debian.net/debian wheezy-backports main
    ```

1. Update the repositories:

    ```
    sudo apt-get update
    ```

1. Install `redis-server`:

    ```
    sudo apt-get -t wheezy-backports install redis-server
    ```

1. Follow the rest of the [installation guide](installation.md).

## Install Redis 2.8 in Ubuntu 12.04

We will [use a PPA](https://launchpad.net/~chris-lea/+archive/ubuntu/redis-server)
to install a recent version of Redis.

1. Install the PPA repository:

    ```
    sudo add-apt-repository ppa:chris-lea/redis-server
    ```

    Your system will now fetch the PPA's key. This enables your Ubuntu system to
    verify that the packages in the PPA have not been interfered with since they
    were built.

1. Update the repositories:

    ```
    sudo apt-get update
    ```

1. Install `redis-server`:

    ```
    sudo apt-get install redis-server
    ```

1. Follow the rest of the [installation guide](installation.md).

[backports]: http://backports.debian.org/Instructions/ "Debian backports website"