Skip to content

Commit 9ae4fa9

Browse files
committed
Fix Redis installation guide
[ci skip]
1 parent 3de6edd commit 9ae4fa9

File tree

2 files changed

+70
-15
lines changed

2 files changed

+70
-15
lines changed

doc/install/installation.md

+10-15
Original file line numberDiff line numberDiff line change
@@ -182,25 +182,20 @@ We recommend using a PostgreSQL database. For MySQL check [MySQL setup guide](da
182182

183183
## 6. Redis
184184

185-
As of this writing, most Debian/Ubuntu distributions ship with Redis 2.2 or
186-
2.4. GitLab requires at least Redis 2.8.
185+
GitLab requires at least Redis 2.8.
187186

188-
Ubuntu users [can use a PPA](https://launchpad.net/~chris-lea/+archive/ubuntu/redis-server)
189-
to install a recent version of Redis.
190-
191-
The following instructions cover building and installing Redis from scratch:
187+
If you are using Debian 8 or Ubuntu 14.04 and up, then you can simply install
188+
Redis 2.8 with:
192189

193190
```sh
194-
# Build Redis
195-
wget http://download.redis.io/releases/redis-2.8.23.tar.gz
196-
tar xzf redis-2.8.23.tar.gz
197-
cd redis-2.8.23
198-
make
191+
sudo apt-get install redis-server
192+
```
199193

200-
# Install Redis
201-
cd utils
202-
sudo ./install_server.sh
194+
If you are using Debian 7 or Ubuntu 12.04, follow the special documentation
195+
on [an alternate Redis installation](redis.md). Once done, follow the rest of
196+
the guide here.
203197

198+
```
204199
# Configure redis to use sockets
205200
sudo cp /etc/redis/redis.conf /etc/redis/redis.conf.orig
206201
@@ -224,7 +219,7 @@ if [ -d /etc/tmpfiles.d ]; then
224219
fi
225220
226221
# Activate the changes to redis.conf
227-
sudo service redis_6379 start
222+
sudo service redis-server restart
228223
229224
# Add git to the redis group
230225
sudo usermod -aG redis git

doc/install/redis.md

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Install Redis on old distributions
2+
3+
GitLab requires at least Redis 2.8. The following guide is for Debian 7 and
4+
Ubuntu 12.04. If you are using Debian 8 or Ubuntu 14.04 and up, follow the
5+
[installation guide](installation.md).
6+
7+
## Install Redis 2.8 in Debian 7
8+
9+
Redis 2.8 is included in the Debian Wheezy [backports] repository.
10+
11+
1. Edit `/etc/apt/sources.list` and add the following line:
12+
13+
```
14+
deb http://http.debian.net/debian wheezy-backports main
15+
```
16+
17+
1. Update the repositories:
18+
19+
```
20+
sudo apt-get update
21+
```
22+
23+
1. Install `redis-server`:
24+
25+
```
26+
sudo apt-get -t wheezy-backports install redis-server
27+
```
28+
29+
1. Follow the rest of the [installation guide](installation.md).
30+
31+
## Install Redis 2.8 in Ubuntu 12.04
32+
33+
We will [use a PPA](https://launchpad.net/~chris-lea/+archive/ubuntu/redis-server)
34+
to install a recent version of Redis.
35+
36+
1. Install the PPA repository:
37+
38+
```
39+
sudo add-apt-repository ppa:chris-lea/redis-server
40+
```
41+
42+
Your system will now fetch the PPA's key. This enables your Ubuntu system to
43+
verify that the packages in the PPA have not been interfered with since they
44+
were built.
45+
46+
1. Update the repositories:
47+
48+
```
49+
sudo apt-get update
50+
```
51+
52+
1. Install `redis-server`:
53+
54+
```
55+
sudo apt-get install redis-server
56+
```
57+
58+
1. Follow the rest of the [installation guide](installation.md).
59+
60+
[backports]: http://backports.debian.org/Instructions/ "Debian backports website"

0 commit comments

Comments
 (0)