注:不要跨过8.16升级至8.17,这样做升级过程会报错

###################################8.2升级至8.16###########################

一,停止服务:

service gitlab stop

二,备份

cd /home/git/gitlab

sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production

三,更新ruby

mkdir /tmp/ruby && cd /tmp/ruby
curl --remote-name --progress https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.3.tar.gz
echo '1014ee699071aa2ddd501907d18cbe15399c997d ruby-2.3.3.tar.gz' | shasum -c - && tar xzf ruby-2.3.3.tar.gz
cd ruby-2.3.3
./configure --disable-install-rdoc
make
sudo make install

sudo gem install bundler --no-ri --no-rdoc

//四,更新&安装node

五,获取最新代码

cd /home/git/gitlab

sudo -u git -H git fetch --all
sudo -u git -H git checkout -- db/schema.rb

sudo -u git -H git checkout 8-16-stable

六,更新数据库等

登陆MySQL修改权限:

GRANT REFERENCES ON `gitlabhq_production`.* TO 'git'@'localhost';

cd /home/git/gitlab

sudo -u git -H bundle install --without postgres development test --deployment

sudo -u git -H bundle clean

sudo -u git -H bundle exec rake db:migrate RAILS_ENV=production

sudo -u git -H bundle exec rake assets:clean assets:precompile cache:clear RAILS_ENV=production

七,更新workhorse

cd /home/git/gitlab

sudo -u git -H bundle exec rake "gitlab:workhorse:install[/home/git/gitlab-workhorse]" RAILS_ENV=production

八,更新gitlab-shell

cd /home/git/gitlab-shell

sudo -u git -H git fetch --all --tags
sudo -u git -H git checkout v4.1.1

九,更新配置文件

cp config/gitlab.yml.example config/gitlab.yml

vim config/gitlab.yml

sudo -u git -H git config --global repack.writeBitmaps true

十,更新nginx文件

vim  lib/support/nginx/gitlab-ssl

vim  lib/support/nginx/gitlab

cp lib/support/nginx/gitlab /etc/nginx/conf.d/gitlab.conf

十一,SMTP配置

vim config/initializers/smtp_settings.rb   ===>ActionMailer::Base.delivery_method = :smtp

十二,更新启动脚本

sudo cp lib/support/init.d/gitlab /etc/init.d/gitlab

十三,启动服务&检查

sudo service gitlab start
sudo service nginx restart

sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production

sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production

##################################################8.16升级至8.17##############################

一,停止服务

service gitlab stop

二,备份

三,更新ruby

ruby > 2.3    ===========》使用2.3.3

npm   2.14.12

node 4.3.0

/////////gcc  6.3.0====》不升级,会导致后续升级问题

四,获取最新代码

cd /home/git/gitlab

sudo -u git -H git fetch --all
sudo -u git -H git checkout -- db/schema.rb

sudo -u git -H git checkout 8-17-stable

五,更新lib等

sudo -u git -H bundle install --without postgres development test --deployment
sudo -u git -H bundle clean
sudo -u git -H bundle exec rake db:migrate RAILS_ENV=production

npm install --production

sudo -u git -H bundle exec rake gitlab:assets:clean gitlab:assets:compile cache:clear RAILS_ENV=production

六,更新workhorse

sudo -u git -H bundle exec rake "gitlab:workhorse:install[/home/git/gitlab-workhorse]" RAILS_ENV=production

七,更新gitlab-shell

cd /home/git/gitlab-shell

sudo -u git -H git fetch --all --tags

sudo -u git -H git checkout v4.1.1

八,更新配置文件

cd /home/git/gitlab

cd config

cp gitlab.yml.example gitlab.yml

vim gitlab.yml

九,git设置

sudo -u git -H git config --global repack.writeBitmaps true

十,nginx配置

cp lib/support/nginx/gitlab /etc/nginx/conf.d/gitlab_8.17

vim /etc/nginx/nginx.conf

十一,更新启动脚本

cd /home/git/gitlab

sudo cp lib/support/init.d/gitlab /etc/init.d/gitlab

十二,启动服务&检查运行

sudo service gitlab start
sudo service nginx restart
sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production

#######################################8.17升级至9.0############################

一,停止服务

service gitlab stop

二,更新ruby/node&安装yarn

ruby 更新=======》跳过   =====》见上次升级 or 上上次

更新node  =====>跳过

安装yarn:   ===(1.12.3)

curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo

sudo yum install yarn

三,获取新代码

cd /home/git/gitlab

sudo -u git -H git fetch --all
sudo -u git -H git checkout -- db/schema.rb

sudo -u git -H git checkout 9-0-stable

四,更新gitlab-shell

cd /home/git/gitlab-shell

sudo -u git -H git fetch --all --tags

sudo -u git -H git checkout v$(</home/git/gitlab/GITLAB_SHELL_VERSION)

五,更新workhorse

cd /home/git/gitlab-workhorse

sudo -u git -H git fetch --all --tags

sudo -u git -H git checkout v$(</home/git/gitlab/GITLAB_WORKHORSE_VERSION)

sudo -u git -H make

六,更新配置文件

cd /home/git/gitlab

cp config/gitlab.yml.example config/gitlab.yml

七,git配置

sudo -u git -H git config --global repack.writeBitmaps true

八,nginx配置

cp lib/support/nginx/gitlab /etc/nginx/conf.d/gitlab9.conf

vim /etc/nginx/conf.d/gitlab9.conf

vim /etc/nginx/nginx.conf

九,更新启动脚本

sudo cp lib/support/init.d/gitlab /etc/init.d/gitlab

十,更新lib等

yum install re2-devel

sudo -u git -H bundle install --without postgres development test --deployment

sudo -u git -H bundle clean

sudo -u git -H bundle exec rake db:migrate RAILS_ENV=production

mkdir -p /home/git/gitlab/node_modules/compression-webpack-plugin/node_modules

chown -R git:git /home/git/gitlab/node_modules/compression-webpack-plugin/node_modules

su - git

cd /home/git/gitlab

bundle exec rake yarn:install gitlab:assets:clean gitlab:assets:compile RAILS_ENV=production NODE_ENV=production   ===>成功后回到root用户

安装gitly======>暂时跳过

十一,启动服务&监控变化

service gitlab start

service nginx restart

sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production

sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production

gitlab8.2->8.16->8.17->9.0升级的更多相关文章

  1. tensorflow 1.8, ubuntu 16.04, cuda 9.0, nvidia-390,安装踩坑指南。

    被tensorflow 1.8, ubuntu 16.04, cuda 9.0, nvidia-390折磨了5天,终于上坑,留下指南,造福后人. 1.先把依赖搞清楚: tensorflow 1.8依赖 ...

  2. Ubuntu 16.04安装Vim8.0

    Ubuntu 16.04安装Vim8.0 https://www.aliyun.com/jiaocheng/131859.html sudo add-apt-repository ppa:jonath ...

  3. 从CentOS 7.0升级到7.7版本

    我平时都在VirtualBox上装虚拟机,方法是导入ova镜像文件,比如导入从网上下载的CentOS7-base.ova,该ova为CentOS 7.0版本,而现在最新版本为7.7,为此进入系统后第一 ...

  4. Caffe使用: Ubuntu 14.04(x64) 从cuda 7.0 升级到 cuda8.0

    由于之前已经在Ubuntu 14.04 x64上面安装cuda7.0+caffe, 并且已经配置好,caffe也已经跑通. 但是最近需要使用Torch,而Torch对cuda的要求是8.0,因此决定对 ...

  5. oracle 11.2.0.1.0 升级 11.2.0.4.0 并 patch 到11.2.0.4.7

    升级步骤: (1)    备份数据库 (2)    运行patchset,升级oracle 软件 (3)    准备新的ORACLE_HOME (4)    运行dbua 或者脚本升级实例 (5)   ...

  6. Dolphin Scheduler 1.1.0升级1.2.0避坑指南

    本文章经授权转载 组件介绍 Apache Dolphin Scheduler是一个分布式易扩展的可视化DAG工作流任务调度系统.致力于解决数据处理流程中错综复杂的依赖关系,使调度系统在数据处理流程中开 ...

  7. jackson2.5.0升级到2.7.0

    开发环境:spring-mvc4.1.7.jackson2.7.0 问题描述:项目中将原来的jackson2.5.0升级到2.7.0,导致服务调用出错. mvc相关的配置文件如下: <?xml ...

  8. 系统补丁更新导致MVC3.0.0升级到3.0.1的问题解决

    在更新了系统补丁之后,会不知觉的将MVC3.0.0升级到MVC3.0.1的问题,解决的思路如下: 1.全部MVC引用使用NuGet进行包的管理. 2.单独把MVC库抽离出来,然后放在单独的项目文件夹, ...

  9. 李洪强iOS开发之-环信02.1_环信 SDK 2.x到3.0升级文档

    李洪强iOS开发之-环信02.1_环信 SDK 2.x到3.0升级文档 SDK 2.x 至 3.0 升级指南 环信 SDK 3.0 升级文档 3.0 中的核心类为 EMClient 类,通过 EMCl ...

  10. UiAutomator2.0升级填坑记

    UiAutomator2.0升级填坑记 SkySeraph May. 28th 2017 Email:skyseraph00@163.com 更多精彩请直接访问SkySeraph个人站点:www.sk ...

随机推荐

  1. 【数论】Prime Time UVA - 10200 大素数 Miller Robin 模板

    题意:验证1~10000 的数 n^n+n+41 中素数的个数.每个询问给出a,b  求区间[a,b]中质数出现的比例,保留两位 题解:质数会爆到1e8 所以用miller robin , 另外一个优 ...

  2. 为什么css定位雪碧图(合成图)都要以负号开头?

    (1)正常来说 定位坐标是以 合成图片 左上角这个点作为原点(0px,0px)开始读取的, 而你的图片全都在坐标系的 第四象限 background-position: x y:(x,y为数值或百分比 ...

  3. 写一个表达式检查所给的整数是否它第三个数字(从右向左)是7。示例:1732 -> true。

    在学习C#基础部分(课件来源:http://www.xuepub.com/52.html),遇到这么一个题目,前段时间面试遇到一个"车牌限行的问题",我就在想如何取末尾数值的问题. ...

  4. 如果是多个 c 代码的源码文件,编译方法如下: $ gcc test1.c test2.c -o main.out $ ./main.out test1.c 与 test2.c 是两个源代码文件。

    如果是多个 c 代码的源码文件,编译方法如下: $ gcc test1.c test2.c -o main.out $ ./main.out test1.c 与 test2.c 是两个源代码文件.

  5. c# http get post转义HttpUtility.UrlEncode

    //该数据如果要http get.post提交,需要经过转义,否则该数据中含& ''等字符会导致意外错误.需要转义.这里用HttpUtility.UrlEncode来转义.接收方无需反解析 s ...

  6. Linux上mount 挂载windows共享文件权限问题

    在服务器部署的时候需要把文件夹设置在windows的共享文件上.在使用mount命令挂载到linux上后.文件路径和文件都是可以访问,但是不能写入,导致系统在上传文件的时候提示“权限不够,没有写权限” ...

  7. multiDex分包时指定主dex的class列表

    在gradle中我们使用了如下代码可以将指定类型分配到主dex中: afterEvaluate { tasks.matching { it.name.startsWith('dex') }.each ...

  8. SQL函数汇总大全

    聚合函数对一组值计算后返回单个值.除了count(统计项数)函数以外,其他的聚合函数在计算式都会忽略空值(null).所有的聚合函数均为确定性函数.即任何时候使用一组相同的输入值调用聚合函数执行后的返 ...

  9. 自己写的运用bootstrap和angulajs框架写的demo

    登录html: <body ng-app="mainapp"> <div class="container"> <div clas ...

  10. FTP主动模式和被动模式的区别(转)

    dd by zhj: 一般使用被动模式,在命令行下,被动模式的格式是:ftp -p (yinservice_env) ajian@ubuntu-desk:~$ ftp -pftp> 之前在用命令 ...