系统环境:
CentOS 7.6
防火墙 关闭
selinux 关闭
官网地址:
https://about.gitlab.com/install/#centos7
下载 rpm 包 [可以忽略, 本人推荐用的是 yum 安装] :
wget
安装和配置必要的依赖关系
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 | sudo bash
更新 yum 库
yum makecache
安装 GitLab
yum install -y GitLab-ee
安装好之后会出现《GitLab 标致》代表安装成功
自动配置所需的网站程序和数据库程序 (过程耗时稍长)
GitLab-ctl reconfigure
打开 PC 浏览器 输入其服务器的 IP 进去 Git html 页面
点击 "寄存器" 按钮 注册一个用户, 然后登陆
来源: http://www.bubuko.com/infodetail-3145626.html