1.下载需要的版本
wget -c https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-15.7.6-ce.0.el7.x86_64.rpm --no-check-certificate
gitlab-ce-15.4.6-ce.0.el7.x86_64.rpm
gitlab-ce-15.7.6-ce.0.el7.x86_64.rpm
gitlab-ce-15.9.7-ce.0.el7.x86_64.rpm
gitlab-ce-15.11.3-ce.0.el7.x86_64.rpm
gitlab-ce-16.2.1-ce.0.el7.x86_64.rpm
gitlab-ce-16.2.3-ce.0.el7.x86_64.rpm
gitlab-ce-16.3.0-ce.0.el7.x86_64.rpm
2、升级
rpm -Uvh gitlab-ce-16.2.1-ce.0.el7.x86_64.rpm
or
rpm -Uvh gitlab-ce-16.2.1-ce.0.el7.x86_64.rpm --nodeps --force
3、查看版本号
cat /opt/gitlab/embedded/service/gitlab-rails/VERSION
4、错误提示
错误原因:
找一个低版本的继续升级就好了。