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
Kazuhiko Shiozaki
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
Show 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:
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
# 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
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
...
...
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