1. 下载Github安装包


2、选择yum->el7
- 注:el是Red Hat Enterprise Linux(EL)的缩写
- EL6是Red Hat 6.x,CentOS 6.x和CloudLinux 6.x的下载
- EL5是Red Hat 5.x,CentOS 5.x和CloudLinux 5.x的下载
- EL7是Red Hat 7.x,CentOS 7.x和CloudLinux 7.x的下载
3. 安装rpm包
rpm -ivh gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm

4. 重置Gitlab
gitlab-ctl reconfigure
5.重启
gitlab-ctl restart
6.开放端口
firewall-cmd --zone=public --add-port=8080/tcp --permanent
7.加载防火墙
firewall-cmd --reload
8.访问

9.修改端口
unicorn['port'] = 9300
gitlab_workhorse['auth_backend'] = "http://localhost:9300"
10.访问

11.查看密码
cd /opt/gitlab/bin
开始初始化密码
sudo gitlab-rails console production

u.password='root'
确认密码
u.password_confirmation='root'
保存密码
u.save!
提示密码太短

重新设置
u.password='12345678'
没有确认密码直接保存

再次确认
u.password_confirmation='12345678'
保存
u.save!

11.登录

12.安装gitlab runner
12.1 下载
查看linux 版本信息
uname -srm
gitlab runner
12.2 创建runner用户
useradd --comment 'GitLab Runner' --create-home gitlab-runner --shell /bin/bash
|