在Linux上更新GitLab,可参考以下步骤:
sudo gitlab-rake gitlab:backup:create
命令备份数据库、配置文件等数据。sudo gitlab-rake gitlab:env:info
命令查看当前GitLab版本。sudo gitlab-ctl stop unicorn
、sudo gitlab-ctl stop sidekiq
和sudo gitlab-ctl stop nginx
命令。sudo apt update
和sudo apt upgrade gitlab-ce
(Debian/Ubuntu)或sudo yum update gitlab-ce
(CentOS/RHEL);用RPM包安装的,下载新包并校验完整性后,用sudo rpm -Uvh
命令更新。sudo gitlab-ctl reconfigure
和sudo gitlab-ctl restart
命令。sudo gitlab-rake gitlab:check
命令确认更新成功。