1. Make a backup (Optional)(注:升级之前先备份数据,非常重要!)
If you would like to make a backup before updating, the below command will backup data in /var/opt/gitlab/backups by default.

# gitlab-rake gitlab:backup:create STRATEGY=copy

默认Gitlab备份路径是:/var/opt/gitlab/backups
注:可通过gitlab.rb配置进行修改备份路径。

2. Update GitLab (注:执行升级命令操作)
Update to the latest version of GitLab.

方法一(建议):
# rpm –U gitlab-ce-最新升级版本号-ce.0.el7.x86_64.rpm   //gitlab下载网址:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/

方法二:
# yum install -y gitlab-ce
上一篇 下一篇