停止相关服务
gitlab-ctl stop unicorn
gitlab-ctl stop sidekiq
gitlab-ctl stop nginx
创建数据备份
gitlab-rake gitlab:backup:create
下载新版安装包
https://packages.gitlab.com/gitlab/gitlab-ce
注意:升级版本需要按顺序,不能跨版本升级,参见如下官方说明:
https://docs.gitlab.com/ee/update/index.html#upgrade-paths
安装新版包
rpm -Uvh gitlab-ce-13.12.15-ce.0.el7.x86_64.rpm
重新加载配置
gitlab-ctl reconfigure
重启Gitlab
gitlab-ctl restart