GitLab 是一个非常优秀的开源git管理项目,小型企业可使用该软件
安装之前准备环境:
ssh rpm -qa|grep -E “openssh”
防火墙 rpm -qa|grep -E “firewalld”
wget rpm -qa|grep -E “wget”
1.安装SMTP服务
安装 GitLab 之前,需要配置 SMTP 电子邮件服务器,以便 GitLab 可以在需要时随时推送电子邮件。官方推荐使用 Postfix。先在你的服务器上安装 Postfix
yum install postfix # 安装命令
systemctl enable postfix # 开机自启动
systemctl start postfix # 启动postfix
2.添加镜像源
例如centos7的镜像文件下载地址:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm