diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-12-14 12:28:17 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-12-14 12:28:58 -0500 |
commit | 739ce7883aaaf2652c7da985254bdec60cb15c51 (patch) | |
tree | 94f6ea96226f592867f2306de99a18f63edc89cc /doc/install | |
parent | 4526515704855278b2971522ed013ff007c0e40a (diff) | |
download | gitlab-ce-739ce7883aaaf2652c7da985254bdec60cb15c51.tar.gz |
Prepare Installation doc for 8.3.0-rc1
[ci skip]
Diffstat (limited to 'doc/install')
-rw-r--r-- | doc/install/installation.md | 73 |
1 files changed, 39 insertions, 34 deletions
diff --git a/doc/install/installation.md b/doc/install/installation.md index 0a19a060a9a..f8116a8a31c 100644 --- a/doc/install/installation.md +++ b/doc/install/installation.md @@ -38,6 +38,7 @@ The GitLab installation consists of setting up the following components: 1. Packages / Dependencies 1. Ruby +1. Go 1. System Users 1. Database 1. Redis @@ -175,48 +176,52 @@ We recommend using a PostgreSQL database. For MySQL check [MySQL setup guide](da ## 6. Redis 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 -this, the following instructions cover building and installing Redis from -scratch. +2.4. GitLab requires at least Redis 2.8. -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. - # Build Redis - 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 +The following instructions cover building and installing Redis from scratch: + +```sh +# Build Redis +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 - cd utils - sudo ./install_server.sh +# Disable Redis listening on TCP by setting 'port' to 0 +sed 's/^port .*/port 0/' /etc/redis/redis.conf.orig | sudo tee /etc/redis/redis.conf - # Configure redis to use sockets - sudo cp /etc/redis/redis.conf /etc/redis/redis.conf.orig +# Enable Redis socket for default Debian / Ubuntu path +echo 'unixsocket /var/run/redis/redis.sock' | sudo tee -a /etc/redis/redis.conf - # Disable Redis listening on TCP by setting 'port' to 0 - sed 's/^port .*/port 0/' /etc/redis/redis.conf.orig | sudo tee /etc/redis/redis.conf +# Grant permission to the socket to all members of the redis group +echo 'unixsocketperm 770' | sudo tee -a /etc/redis/redis.conf - # Enable Redis socket for default Debian / Ubuntu path - echo 'unixsocket /var/run/redis/redis.sock' | sudo tee -a /etc/redis/redis.conf - # Grant permission to the socket to all members of the redis group - echo 'unixsocketperm 770' | sudo tee -a /etc/redis/redis.conf +# Create the directory which contains the socket +mkdir /var/run/redis +chown redis:redis /var/run/redis +chmod 755 /var/run/redis - # Create the directory which contains the socket - mkdir /var/run/redis - chown redis:redis /var/run/redis - chmod 755 /var/run/redis - # 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 +# 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 - sudo service redis_6379 start +# Activate the changes to redis.conf +sudo service redis_6379 start - # Add git to the redis group - sudo usermod -aG redis git +# Add git to the redis group +sudo usermod -aG redis git +``` ## 7. GitLab @@ -226,9 +231,9 @@ to install a recent version of Redis. ### Clone the Source # 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 |