系统环境:
CentOS 7.6
防火墙 关闭
selinux 关闭
官网地址:
https://about.gitlab.com/install/#centos7
下载rpm包 【可以忽略,本人推荐用的是yum安装】:
wget --content-disposition https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/7/gitlab-ce-12.1.3-ce.0.el7.x86_64.rpm/download.rpm
安装和配置必要的依赖关系
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-ctl reconfigure
打开PC浏览器 输入其服务器的IP进去Git html页面
点击"寄存器"按钮 注册一个用户,然后登陆