安装gitlab 依赖包,并设置Firewalls
yum install curl policycoreutils openssh-server openssh-clients -y
systemctl enable sshd
systemctl start sshd
yum install postfix -y
systemctl enable postfix
systemctl start postfix
firewall-cmd --permanent --add-service=http
systemctl reload firewalld
Gitlab 官方安装,一般是最新版本
curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
yum install gitlab-ce -y
我这里是因为要做迁移,安装之前的版本7.10.0
curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
yum install gitlab-ce-7.10.0~omnibus-1.x86_64 -y
用官方安装对应版本提示没有签名,安装失败
只好下载RPM包安装
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-7.10.0~omnibus-1.x86_64.rpm
rpm -i gitlab-ce-7.10.0~omnibus-1.x86_64.rpm
gitlab-ctl reconfigure
gitlab-ctl start
打开浏览器输入ip开始访问
默认用户名:root 密码:5iveL!fe
注意:gitlab-ce-7.10.0这个版本本人测试了几个centos系统,CentOS Linux release 7.4.1708 (Core) 这个版本系统上安装比较稳定,其他的多少有报错,原因未找到,如果是新装gitlab,可以去官网下载安装