Commit 739ce788 authored by Robert Speicher's avatar Robert Speicher

Prepare Installation doc for 8.3.0-rc1

[ci skip]
parent 45265157
...@@ -38,6 +38,7 @@ The GitLab installation consists of setting up the following components: ...@@ -38,6 +38,7 @@ The GitLab installation consists of setting up the following components:
1. Packages / Dependencies 1. Packages / Dependencies
1. Ruby 1. Ruby
1. Go
1. System Users 1. System Users
1. Database 1. Database
1. Redis 1. Redis
...@@ -175,48 +176,52 @@ We recommend using a PostgreSQL database. For MySQL check [MySQL setup guide](da ...@@ -175,48 +176,52 @@ We recommend using a PostgreSQL database. For MySQL check [MySQL setup guide](da
## 6. Redis ## 6. Redis
As of this writing, most Debian/Ubuntu distributions ship with Redis 2.2 or As of this writing, most Debian/Ubuntu distributions ship with Redis 2.2 or
2.4. GitLab requires at least Redis 2.8. If your platform doesn't provide 2.4. GitLab requires at least Redis 2.8.
this, the following instructions cover building and installing Redis from
scratch.
Ubuntu users [can also use a PPA](https://launchpad.net/~chris-lea/+archive/ubuntu/redis-server) Ubuntu users [can use a PPA](https://launchpad.net/~chris-lea/+archive/ubuntu/redis-server)
to install a recent version of Redis. to install a recent version of Redis.
# Build Redis The following instructions cover building and installing Redis from scratch:
wget http://download.redis.io/releases/redis-2.8.23.tar.gz
tar xzf redis-2.8.23.tar.gz ```sh
cd redis-2.8.23 # Build Redis
make wget http://download.redis.io/releases/redis-2.8.23.tar.gz
tar xzf redis-2.8.23.tar.gz
cd redis-2.8.23
make
# Install Redis
cd utils
sudo ./install_server.sh
# Configure redis to use sockets
sudo cp /etc/redis/redis.conf /etc/redis/redis.conf.orig
# Install Redis # Disable Redis listening on TCP by setting 'port' to 0
cd utils sed 's/^port .*/port 0/' /etc/redis/redis.conf.orig | sudo tee /etc/redis/redis.conf
sudo ./install_server.sh
# Configure redis to use sockets # Enable Redis socket for default Debian / Ubuntu path
sudo cp /etc/redis/redis.conf /etc/redis/redis.conf.orig echo 'unixsocket /var/run/redis/redis.sock' | sudo tee -a /etc/redis/redis.conf
# Disable Redis listening on TCP by setting 'port' to 0 # Grant permission to the socket to all members of the redis group
sed 's/^port .*/port 0/' /etc/redis/redis.conf.orig | sudo tee /etc/redis/redis.conf echo 'unixsocketperm 770' | sudo tee -a /etc/redis/redis.conf
# Enable Redis socket for default Debian / Ubuntu path # Create the directory which contains the socket
echo 'unixsocket /var/run/redis/redis.sock' | sudo tee -a /etc/redis/redis.conf mkdir /var/run/redis
# Grant permission to the socket to all members of the redis group chown redis:redis /var/run/redis
echo 'unixsocketperm 770' | sudo tee -a /etc/redis/redis.conf chmod 755 /var/run/redis
# Create the directory which contains the socket # Persist the directory which contains the socket, if applicable
mkdir /var/run/redis if [ -d /etc/tmpfiles.d ]; then
chown redis:redis /var/run/redis echo 'd /var/run/redis 0755 redis redis 10d -' | sudo tee -a /etc/tmpfiles.d/redis.conf
chmod 755 /var/run/redis fi
# Persist the directory which contains the socket, if applicable
if [ -d /etc/tmpfiles.d ]; then
echo 'd /var/run/redis 0755 redis redis 10d -' | sudo tee -a /etc/tmpfiles.d/redis.conf
fi
# Activate the changes to redis.conf # Activate the changes to redis.conf
sudo service redis_6379 start sudo service redis_6379 start
# Add git to the redis group # Add git to the redis group
sudo usermod -aG redis git sudo usermod -aG redis git
```
## 7. GitLab ## 7. GitLab
...@@ -226,9 +231,9 @@ to install a recent version of Redis. ...@@ -226,9 +231,9 @@ to install a recent version of Redis.
### Clone the Source ### Clone the Source
# Clone GitLab repository # Clone GitLab repository
sudo -u git -H git clone https://gitlab.com/gitlab-org/gitlab-ce.git -b 8-2-stable gitlab sudo -u git -H git clone https://gitlab.com/gitlab-org/gitlab-ce.git -b 8-3-stable gitlab
**Note:** You can change `8-2-stable` to `master` if you want the *bleeding edge* version, but never install master on a production server! **Note:** You can change `8-3-stable` to `master` if you want the *bleeding edge* version, but never install master on a production server!
### Configure It ### Configure It
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment