以下是在Debian上升級GitLab的兩種常見方法:
sudo gitlab-rake gitlab:backup:create
。sudo apt update
。sudo apt upgrade gitlab-ce
(或gitlab-ee
)。sudo gitlab-ctl restart
。sudo gitlab-rake gitlab:backup:create
。wget
或curl
下載適合Debian版本的包,如wget https://packages.gitlab.com/gitlab/gitlab-ce/packages/debian/bullseye/gitlab-ce_14.8.0-ce.0_amd64.deb
。sudo dpkg -i gitlab-ce_14.8.0-ce.0_amd64.deb
,有依賴問題則用sudo apt-get install -f
解決。sudo gitlab-ctl restart
。升級前要確保系統時間和時區正確,升級后查看日志文件/var/log/gitlab/gitlab-rails/production.log
確認無錯誤。