一, 安装相应所需依赖包
- yum install lokkit
- yum install curl openssh-server openssh-clients postfix cronie -y
- service postfix start
- chkconfig postfix on
- lokkit -s http -s SSH
- curl -sS http://packages.gitlab.cc/install/gitlab-ce/script.rpm.sh | sudo bash
二, 添加 GitLab 仓库并安装
- curl -sS http://packages.gitlab.cc/install/gitlab-ce/script.rpm.sh | sudo bash
- yum -y install GitLab-ce
三, 修改配置文件并启动
- 1,VIM /etc/GitLab/GitLab.rb
- external_url 'http://gitlab.xxxxx.com'
2, 重新加载配置
GitLab-ctl reconfigure
3, 重启 GitLab
GitLab-clt restart
来源: http://www.bubuko.com/infodetail-2870637.html