系统环境:
CentOS 7.6
防火墙 关闭
selinux 关闭
安装和配置必要的依赖关系
yum install -y curl policycoreutils-python openssh-server
systemctl enable sshd 开机自启动sshd
systemctl start sshd 开启sshd
安装邮箱服务
yum install postfix
systemctl enable postfix
systemctl start postfix
下载GitLab 官方yum源
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
或者
https://quqi.gblhgk.com/s/807291/59xQgmwHrMG7xs10
更新yum库
yum makecache
安装GitLab
yum install -y gitlab-ee
如果按照GitLab出现
gitlab-ee-13.4.3-ee.0.el7.x86_64: [Errno 256] No more mirrors to try.
解决方式:
1、yum clean all
2、yum makecache
3.完了也可以再给yum来个升级【可选】。
yum -y update
安装好之后会出现《GitLab标致》代表安装成功
自动配置所需的网站程序和数据库程序(过程耗时稍长)
gitlab-ctl reconfigure
打开PC浏览器 输入其服务器的IP进去Git html页面
点击"寄存器"按钮 注册一个用户,然后登陆