Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
739ce788
Commit
739ce788
authored
Dec 14, 2015
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prepare Installation doc for 8.3.0-rc1
[ci skip]
parent
45265157
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
34 deletions
+39
-34
doc/install/installation.md
doc/install/installation.md
+39
-34
No files found.
doc/install/installation.md
View file @
739ce788
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment