Centos7 安装Gitlab

 

安装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,可以去官网下载安装

Gitlab 官网安装

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值