gitlab升级方法
gitlab升级方法:国内网络环境推荐方法二
方法一:官网的升级方式
(1)停止git服务
gitlab-ctl stop unicorn
gitlab-ctl stop sidekiq
gitlab-ctl stop nginx
也可以用一条命令搞定:gitlab-ctl stop
(2)下载升级脚本:
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
(3)运行升级命令
sudo yum install gitlab-ce
方法二:centos环境下,下载rpm包.
(1)停止git服务
gitlab-ctl stop unicorn
gitlab-ctl stop sidekiq
gitlab-ctl stop nginx
也可以用一条命令搞定:gitlab-ctl stop
(2)备份数据,防止数据升级失败,数据丢失
gitlab-rake gitlab:backup:create
(3)安装升级包
rpm -Uvh gitlab-7.13.1_omnibus-1.el6.x86_64.rpm
(4)重新载入配置文件:
gitlab-ctl reconfigure
(5)重启git服务
gitlab-ctl restart