gitlab 升级

gitlab 升级

目前版本
10.7.3

cat /opt/gitlab/embedded/service/gitlab-rails/VERSION

重置gitlab root 密码
https://www.jianshu.com/p/15f15d422015

备份教程
https://www.cnblogs.com/lvjinlin/p/17979747
升级教程
https://www.jianshu.com/p/cf34aab10234

1.先备份数据
gitlab-rake gitlab:backup:create

2.重新安装新版本

最新的rpm包
wget https://mirror.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-17.1.1-ce.0.el7.x86_64.rpm
wget https://mirror.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.7.3-ce.0.el7.x86_64.rpm
wget https://mirror.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.8.7-ce.0.el7.x86_64.rpm


gitlab-ce-10.8.7-ce.0.el7.x86_64.rpm

sudo rpm -ivh gitlab-ce-17.1.1-ce.0.el7.x86_64.rpm

3.导入恢复数据
gitlab-ctl stop unicorn
gitlab-ctl stop sidekiq

cd /var/opt/gitlab/backups

gitlab-rake gitlab:backup:restore BACKUP=1530156812_2018_06_28_10.8.4
gitlab-rake gitlab:backup:restore BACKUP=1730969782_2024_11_07_10.7.3


4.升级
gitlab-ctl stop puma

gitlab-ctl stop sidekiq

gitlab-ctl stop nginx

gitlab-ctl restart

rpm -Uvh gitlab-ce-10.8.7-ce.0.el7.x86_64.rpm

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值