gitlab升级

本文详细介绍了如何分步骤地将GitLab从11.4.3版本逐步升级到14.10.5版本,涉及多个中间版本的升级路径,并提到了升级前的准备工作,包括备份和恢复操作,以及每个版本升级的具体步骤和所需注意事项。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1.升级路线

gitlab升级不能一步到位,要一个个版本渐进式升级,根据官方文档选择自己的升级路线。
官方文档:https://docs.gitlab.com/ee/update/index.html#upgrade-paths
根据文档,升级路线为:11.4.3 -> 11.11.8 -> 12.0.12 -> 12.1.17 -> 12.10.14 -> 13.0.14 -> 13.1.11 -> 13.8.8 -> 13.12.15 -> 14.0.12 -> 14.3.6 -> 14.6.2 -> 14.9.5 -> 14.10.5

2.准备

升级路线上所有安装包,容器部署的下载官方镜像文件gitlab/gitlab-ce:[version]-ce.0
https://packages.gitlab.com/gitlab/gitlab-ce

升级前务必执行备份操作

GitLab 12.2以后:
gitlab-backup create
GitLab 12.1及以前:
gitlab-rake gitlab:backup:create

如果升级过程中出现问题,退回初始版本,执行恢复操作:

关闭数据库连接服务
gitlab-ctl stop unicorn && gitlab-ctl stop sidekiq

⚠️恢复操作会清空当前gitlab数据

cd /opt/gitlab_backup
gitlab-rake gitlab:backup:restore BACKUP=1553965778_2019_03_31_10.7.3       ---#文件名会自动补全-(注意)

3.升级

11.4.3 -> 11.11.8

gitlab-ctl stop unicorn
gitlab-ctl stop sidekiq

根据:https://docs.gitlab.com/omnibus/update/gitlab_11_changes.html

11.11.8大版本需要修改 gitlab.rb的2个地方:
1、增加 nginx[‘ssl_protocols’] = “TLSv1.2”
2、旧格式去掉 git_data_dir “/data/git-data” 增加新格式 git_data_dirs({ “default” => { “path” => “/data/git-data” } })
然后执行:
gitlab-ctl r

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值