版本: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. HDU 4699 - Editor - [对顶栈]

    题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4699 Problem Description Sample Input8I 2I -1I 1Q 3LD ...

  2. 结构体指针 Pointers to Structures struct Books Book1; struct Books *struct_pointer;

    小结: 1.To access the members of a structure using a pointer to that structure, you must use the → ope ...

  3. URL地址中的#

    1.#的涵义 代表网页中的一个位置.井号后面的字符,就是该位置的标识符.比如, http://www.baidu.com/index.html#one 就代表网页index.html的one位置.浏览 ...

  4. [about remote controller]--mstsc-teamviewer-vnc,nomachine

    https://www.jianshu.com/p/c80db368ed8a https://www.nomachine.com/download Ubuntu安装VNC,VNC却无法随系统启动,遂换 ...

  5. mysql学习【第4篇】:MySQL函数和编程

    狂神声明 : 文章均为自己的学习笔记 , 转载一定注明出处 ; 编辑不易 , 防君子不防小人~共勉 ! mysql学习[第4篇]:MySQL函数 官方文档 : 官方文档 常用函数 分类: 数学函数 , ...

  6. AndroidStudio_Button

    这里回顾一下Button的使用方法: 1.在page1.xml文件中定义一个按钮控件 <Button android:id="@+id/btn_textview" andro ...

  7. Django+Celery 执行异步任务和定时任务

    celery是一个基于python开发的简单.灵活且可靠的分布式任务队列框架,支持使用任务队列的方式在分布式的机器/进程/线程上执行任务调度.采用典型的生产者-消费者模型,主要由三部分组成: 1. 消 ...

  8. push问题1

    问题: $ git pushTo gitee.com:kekemuyu/xtpole.git ! [rejected] master -> master (fetch first)error: ...

  9. for in 循环

    for  in循环可以循环遍历数组  关键也可以循环遍历对象!而一般的for循环只能循环遍历数组, 当循环遍历对象时key值代表键值对的键,obj[key]则是对应键的值: 当循环遍历数组时,数组不是 ...

  10. 汇编-5.0-[BX]和loop指令

    1.要完整的描述一个内存单元,需要两种信息:1.内存单元的地址:2.内存单元的长度(类型). 2."()"表示一个寄存器或一个内存单元中的内容.如:(ax)表示ax中的内容. &q ...