跳转到主要内容

GIT 升级步骤讲解

GIT 升级步骤讲解。

 

       *.                  *.
      ***                 ***
     *****               *****
    .******             *******
    ********            ********
   ,,,,,,,,,***********,,,,,,,,,
  ,,,,,,,,,,,*********,,,,,,,,,,,
  .,,,,,,,,,,,*******,,,,,,,,,,,,
      ,,,,,,,,,*****,,,,,,,,,.
         ,,,,,,,****,,,,,,
            .,,,***,,,,
                ,*,.

     _______ __  __          __
    / ____(_) /_/ /   ____ _/ /_
   / / __/ / __/ /   / __ `/ __ \
  / /_/ / / /_/ /___/ /_/ / /_/ /
  \____/_/\__/_____/\__,_/_.___/
这里下载GitLab 最新包:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/
停止服务
gitlab-ctl stop

gitlab-ctl restart postgresql       #升级或备份必须要启动 postgresql 

备份数据
gitlab-rake gitlab:backup:create

安装升级包
rpm -Uvh gitlab-ce-8.16.4-ce.0.el7.x86_64.rpm

升级命令
gitlab-ctl pg-upgrade

重新加载配置
gitlab-ctl reconfigure

启动服务
gitlab-ctl restart

停止服务
gitlab-ctl stop

unzip xxxx.zip
备份汉化目录
cp -rf /opt/gitlab/embedded/service/gitlab-rails/  /home/gitlab-rails

拷贝汉化文件
\cp  ./gitlab-zh/*  /opt/gitlab/embedded/service/gitlab-rails/  -rf
这里下载汉化包,要对应相关版本。