版本:9.0.3

升级版本:9.0.13

一,停止服务

gitlab-ctl stop unicorn
gitlab-ctl stop sidekiq
gitlab-ctl stop nginx

二,备份

gitlab-rake gitlab:backup:create

rpm -e gitlab-ce-9.0.3-ce.0.el7.x86_64  =====》卸载旧版gitlab

三,下载新版RPM ===》使用清华开源镜像网站

https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/

rpm -ivh gitlab-ce-9.0.13-ce.0.el7.x86_64.rpm

四,更改配置文件 ====》

########################如使用的时是MySQL数据库,查看我的另一篇

https://www.cnblogs.com/zy1234567/p/9971409.html

##############################################################

vim /etc/gitlab/gitlab.rb

external_url 'http://10.2.177.57:8090'

保存退出

五,启动服务

gitlab-ctl reconfigure

gitlab-ctl start

##########################################升级##################################

9.0.13-》9.5.9-》10.0->10.3.9->10.6.6-》10.8-》11.0

一,关闭服务

gitlab-ctl stop unicorn
gitlab-ctl stop sidekiq
gitlab-ctl stop nginx

二,安装依赖

yum install policycoreutils-python.x86_64

三,下载RPM

gitlab-ce-11.4.5-ce.0.el7.x86_64.rpm

chmod 777 gitlab-ce-11.4.5-ce.0.el7.x86_64.rpm

四,升级

rpm -Uvh gitlab-ce-11.4.5-ce.0.el7.x86_64.rpm   =====》如果你是MySQL这里会报mysql2 gem问题,忽略,进行重新配置后,使用gitlab-ctl reconfigure,这个问题会解决

五,重新配置gitlab

vim /etc/gitlab/gitlab.rb   ====》初次升级修改,二次/多次升级不用修改

vim /opt/gitlab/embedded/service/gitlab-rails/.bundle/config   ====>消除postgres依赖 ,适用于MySQL数据库

#############################

报错:缺少mysql2==>安装mysql2报错===》缺少ruby.h

原因:/opt/gitlab/embedded/bin/ruby 版本与/usr/loacl/bin/ruby 或/usr/bin/ruby版本不一致

解决方案:

手动安装/opt/gitlab/embedded/bin/ruby 对应的版本、

cp /usr/local/include/ruby-2.4.0/*  /opt/gitlab/embedded/lib/ruby/include/

cd /opt/gitlab/embedded/lib/ruby/include/

cp x86_64-linux/ruby/config.h  ./ruby/

cd /opt/gitlab/embedded/

mkdir include && cd include

cp -r /usr/local/include/* .

/opt/gitlab/embedded/bin/gem install -i /opt/gitlab/embedded/service/gem/ruby/2.3.0/ mysql2 --version='0.4.10'
/opt/gitlab/embedded/bin/gem install  mysql2 --version='0.4.10'
/opt/gitlab/embedded/bin/gem list | grep -i mysql2
/opt/gitlab/embedded/bin/gem install -i /opt/gitlab/embedded/service/gem/ruby/2.3.0/ peek-mysql2 -v'1.1.0'
/opt/gitlab/embedded/bin/gem install  peek-mysql2 -v'1.1.0'
gitlab-ctl reconfigure

#####################################  =====》直接进行gitlab-ctl restart

####################################

报错:缺少MySQL2  ====》没有报缺少ruby.h  ===========》初次升级9.5,不需要升级ruby,所以没报缺少ruby.h

gem install mysql2 -v"0.4.5"  如果不行用下面的这条

/opt/gitlab/embedded/bin/gem install -i /opt/gitlab/embedded/service/gem/ruby/2.3.0/ mysql2 -v'0.4.5'   =====>版本看提示

若缺少依赖:

/opt/gitlab/embedded/bin/gem install -i /opt/gitlab/embedded/service/gem/ruby/2.3.0/ peek-mysql2 -v'1.1.0'

/opt/gitlab/embedded/bin/gem install peek-mysql2 -v'1.1.0'

#########################################

登陆mysql给git@localhost赋权限:

grant all privileges on *.* to 'git'@'localhost';

flush privilges;

gitlab-ctl reconfigure

六,重启gitlab

gitlab-ctl restart

七,检查运行状况:

gitlab-rake gitlab:check

gitlab RPM卸载 & 安装 && 升级(9.0.13-》9.5.9-》10.0->10.3.9->10.6.6-》10.8-》11.0)的更多相关文章

  1. mysql8.0.13 的docker镜像安装

    1.从docker中获取mysql8.0.13镜像 docker pull mysql:8.0.13通过 docker images 命令查看镜像是否获取到了 2.运行 mysql8.0.13 镜像 ...

  2. centos 7 源代码搭建部署 zabbix-4.0.13 LTS

    Zabbix 官网 >:https://www.zabbix.com/download 源代码地址>:https://www.zabbix.com/cn/download_sources# ...

  3. k8s1.11.0安装、一个master、一个node、查看node名称是主机名、node是扩容进来的、带cadvisor监控服务

    一个master.一个node.查看node节点是主机名 # 安装顺序:先在test1 上安装完必要组件后,就开始在 test2 上单独安装node组件,实现node功能,再返回来配置test1加入集 ...

  4. CM5(5.11.0)和CDH5(5.11.0)离线安装

    概述 文件下载 系统环境搭建 日志查看 Q&A 参考 概述 CDH (Cloudera's Distribution, including Apache Hadoop),是Hadoop众多分支 ...

  5. k8s1.11.0安装、一个master、一个node、查看node名称是ip、node是扩容进来的、带cadvisor监控服务

    一个master.一个node.查看node节点是ip # 安装顺序:先在test1 上安装完必要组件后,就开始在 test2 上单独安装node组件,实现node功能,再返回来配置test1加入集群 ...

  6. 项目压力测试软件 -- LoadRunner 11.0 的安装、汉化和破解

        重要说明:     LoadRunner 11.0 只支持Win7,32位系统:不支持Win7,64位系统[ Win7,64位 我反复安装都没有成功!] 一.下载安装.汉化.破解文件: 我的下 ...

  7. 选择 Delphi 2007 ( CodeGear Delphi 2007 for Win32 Version 11.0.2837.9583 ) 的理由

    选择 Delphi 2007 ( CodeGear Delphi 2007 for Win32 Version 11.0.2837.9583 ) 的理由 我不喜欢用InstallRite的全自动安装包 ...

  8. 未能加载文件或程序集 Microsoft.ReportViewer.Common, Version=11.0.0.0

    原文:未能加载文件或程序集 Microsoft.ReportViewer.Common, Version=11.0.0.0 System.IO.FileNotFoundException: 未能加载文 ...

  9. RDLC报表 在WinForm里运行出现 未能加载文件或程序集 Microsoft.ReportViewer.WinForms, Version=11.0.0.0 System.IO.FileNotFoundException

    原文:RDLC报表 在WinForm里运行出现 未能加载文件或程序集microsoft.reportviewer.winforms 推荐以下方案二 做一下记录顺便帮助一下遇到问题的朋友. 做RDLC报 ...

随机推荐

  1. [No000014C]让大脑高效运转的24个技巧

    内容来译自David Rock “Your Brain at Work” and Nir Eyal, NirAndFar.com. Nir Eyal 是<上瘾>这本书的作者. 如何抓住转瞬 ...

  2. idea 乱码问题

    1. db browser查询结果为乱码: 找到idea的安装目录 如C:\..\Roaming\JetBrains\IntelliJ IDEA Community Edition 2018.1.3\ ...

  3. Ubuntu启动时a start job is running for dev-disk-by延时解决

    写在前面:本博客为本人原创,严禁任何形式的转载!本博客只允许放在博客园(.cnblogs.com),如果您在其他网站看到这篇博文,请通过下面这个唯一的合法链接转到原文! 本博客全网唯一合法URL:ht ...

  4. Java 输入/输出——处理流(BufferedStream、PrintStream、转换流、推回输入流)

    关于使用处理流的优势,归纳起来就是两点:(1)对于开发人员来说,使用处理流进行输入/输出操作更简单:(2)使用处理流执行效率更高. 1.BufferedInputStream/BufferedOutp ...

  5. tst

    select count(*) from student where age>18 group by 性别 having count(*)>2 order by age where过滤的是 ...

  6. hotplug 热拔插机制框架

    框架入口源文件: mdev.c (可根据入口源文件,再按着框架到内核走一遍) 内核版本:linux_2.6.22.6     硬件平台:JZ2440 以下是驱动框架:

  7. 关于WARN Dispatcher:68 - Could not find action or result报错

    出现这个错 00:03:37,142 WARN Dispatcher:68 - Could not find action or result: /crm/linkMan_addLinkMan.act ...

  8. 如何使用CryptoJS配合Java进行AES加密和解密

    注意 1. PKCS5Padding和PKCS7Padding是一样的 2. 加密时使用的key和iv要转换成base64格式 一.前端 1.函数 function encrypt (msg, key ...

  9. (1.16)mysql server优化之buffer pool

    (1.16)mysql server优化之buffer pool 1.innodb buffer pool 查看 show status like  'Innodb_buffer_pool_%'; 该 ...

  10. 简明 ASP.NET Core 手册2018

    https://windsting.github.io/little-aspnetcore-book/book/ 中文版 https://nbarbettini.gitbooks.io/little- ...