确认当前Gitlab版本
1 | [root@localhost ~]# head -1 /opt/gitlab/version-manifest.txt |
开始升级
大版本升级限制
1 | [root@localhost ~]# rpm -Uvh gitlab-ce-11.10.4-ce.0.el7.x86_64.rpm |
因为当前的版本是
8.16.4
,与最新版本相差太远,所以在gitlab中进行大版本升级时
会失败,提示中建议先升级到10.8.*
版本,查看 官方升级文档 ,其中有推荐升级路径
开始进行分步升级
1 | [root@localhost ~]# wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-8.17.7-ce.0.el7.x86_64.rpm |
以升级到8.17.7为例,官方文档给出的推荐升级路径中的版本,均为每个大版本中的最新版本,只有最后一个v11的版本我们可以选择更新的版本,整体升级路线:8.13.4 -> 8.17.7 -> 9.5.10 -> 10.8.7 -> 11.10.4
继续分批次下载包、安装升级
1 | //升级到9.5.10 |
升级完成
1 | ···· |
检查进程及Gitlab版本
1 | [root@localhost ~]# gitlab-ctl status |