准备Centos7虚拟机 以下是百度网盘下载 提取码 6666 VMware-workstation-full-15 VMware15激活码 CG392-4PX5J-H816Z-HYZNG-PQRG2 CentOS-7-x86_64-DVD-1708.iso
yum install -y curl policycoreutils-python openssh-server
systemctl stop firewalld
systemctl disable firewalld
包含两种方式
vim /etc/yum.repos.d/gitlab-ce.repo
[gitlab-ce]
name=gitlab-ce repository
baseurl=http://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7
gpgcheck=0
enabled=1
yum install -y gitlab-ce
注意: GitLab有离线导入导出功能,如果两个GitLab服务器版本不一致,容易导致导入失败,这种情况就可以使用指定版本安装。
yum install -y gitlab-ce-10.4.1-ce.0.el7.x86_64.rpm
vim /etc/gitlab/gitlab.rb
# 修改访问IP
external_url 'http://192.168.227.129:8085'
gitlab-ctl reconfigure
gitlab-ctl status
http://192.168.227.129:8085 首次登陆需要设置密码 eg: 12345678 账号为 root