Gitlab升级操作步骤
2017-06-08 本文已影响0人
yuanf_689a
1、卸载当前安装gitlab
sudo rpm -e gitlab-ce
find / -name gitlab|xargs rm -rf
2、准备安装包
安装:rpm -ivh gitlab-7.5.1_omnibus.5.2.0.ci-1.el6.x86_64.rpm

修改配置文件:vi /etc/gitlab/gitlab.rb
external_url 'http://192.168.1.11'
重新加载配置:sudo gitlab-ctl reconfigure

3、gitlab升级
1)停止unicorn、sidekiq
gitlab-ctl stop unicorn
gitlab-ctl stop sidekiq

2)创建备份,防止失败
gitlab-rake gitlab:backup:create

3)升级安装包
rpm -Uvh gitlab-ce-9.2.2-ce.0.el6.x86_64.rpm
重新加载配置:gitlab-ctl reconfigure
重启gitlab服务:gitlab-ctl restart
