gitlab-ce 升级 12.10.14-->13.12.15

升级顺序

12.10.14—>13.0.14—>13.1.11—>13.8.8—>13.12.15
注意:
在实际生产环境1800个项目出问题了大概5个项目,所以最好手动做好备份,如果真的丢失可以参考我的恢复gitlal项目恢复

1.此顺序参照官方文档

在这里插入图片描述

2.升级前会自动备份配置,所以以下没有备份
3.每次升级完请检查以下项目
①ldap账户是否能够登录
②是否能拉取和上传项目
③总在线runners数是否一致
④项目runner是否在线**

一.12.10.14安装

#安装依赖
yum -y install policycoreutils openssh-server openssh-clients postfix policycoreutils-python 

cd /tmp
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-12.10.14-ce.0.el7.x86_64.rpm

rpm -ivh gitlab-ce-12.10.14-ce.0.el7.x86_64.rpm

vim /etc/gitlab/gitlab.rb
external_url 'http://ip'
prometheus['enable'] = false 

gitlab-ctl  reconfigure
gitlab-ctl  start
gitlab-ctl  status

二.12.10.14—>13.0.14

#停止组件
gitlab-ctl stop unicorn
gitlab-ctl stop sidekiq
gitlab-ctl stop nginx

#下载新版
cd /tmp
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-13.0.14-ce.0.el7.x86_64.rpm

#安装配置重启
rpm -Uvh gitlab-ce-13.0.14-ce.0.el7.x86_64.rpm
gitlab-ctl  reconfigure
gitlab-ctl  restart

三.13.0.14—>13.1.11

#1.下载新版
cd /tmp
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-13.1.11-ce.0.el7.x86_64.rpm

#2.停止组件
gitlab-ctl stop sidekiq
gitlab-ctl stop nginx

#3.安装配置重启
rpm -Uvh gitlab-ce-13.1.11-ce.0.el7.x86_64.rpm
gitlab-ctl  reconfigure
gitlab-ctl  restart

四.13.1.11—>13.8.8

#1.下载新版
cd /tmp
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-13.8.8-ce.0.el7.x86_64.rpm

#2.停止组件
gitlab-ctl stop sidekiq
gitlab-ctl stop nginx

#3.安装配置重启
rpm -Uvh gitlab-ce-13.8.8-ce.0.el7.x86_64.rpm
gitlab-ctl  reconfigure
gitlab-ctl  restart

五.13.8.8—>13.12.15

#1.下载新版
cd /tmp
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-13.12.15-ce.0.el7.x86_64.rpm

#2.停止组件
gitlab-ctl stop sidekiq
gitlab-ctl stop nginx

#3.安装配置重启
rpm -Uvh gitlab-ce-13.12.15-ce.0.el7.x86_64.rpm
gitlab-ctl  reconfigure
gitlab-ctl  restart
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值