gitlab

添加 gitlab repo

1
2
3
4
5
6
7
[gitlab-ce]
name=gitlab-ce
baseurl=http://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6
repo_gpgcheck=0
gpgcheck=0
enabled=1
gpgkey=https://packages.gitlab.com/gpg.key

yum 安装 gitlab

1
2
3
4
yum makecache
yum install gitlab-ce
# 修改服务器地址
vim /etc/gitlab/gitlab.rb

配置 gitlab

vi /etc/gitlab/gitlab.rb

external_url 'http://ip'

使配置生效

1
gitlab-ctl reconfigure