欧美一级特黄大片做受成人-亚洲成人一区二区电影-激情熟女一区二区三区-日韩专区欧美专区国产专区

CentOS7下怎么升級GitLab

這篇文章給大家分享的是有關(guān)CentOS7下怎么升級GitLab的內(nèi)容。小編覺得挺實用的,因此分享給大家做個參考,一起跟隨小編過來看看吧。

專注于為中小企業(yè)提供網(wǎng)站設(shè)計、成都網(wǎng)站建設(shè)服務(wù),電腦端+手機端+微信端的三站合一,更高效的管理,為中小企業(yè)云夢免費做網(wǎng)站提供優(yōu)質(zhì)的服務(wù)。我們立足成都,凝聚了一批互聯(lián)網(wǎng)行業(yè)人才,有力地推動了近1000家企業(yè)的穩(wěn)健成長,幫助中小企業(yè)通過網(wǎng)站建設(shè)實現(xiàn)規(guī)模擴充和轉(zhuǎn)變。

備份&升級

在升級前一定要做好備份,記錄自己當(dāng)前gitlab-ca的版本號。

查看當(dāng)前gitlab版本號

[root@localhost ~]# yum list | grep gitlab-ce
gitlab-ce.x86_64              9.3.6-ce.0.el7       installed

備份文件

[root@localhost ~]# gitlab-rake gitlab:backup:create
Dumping database ... 
Dumping PostgreSQL database gitlabhq_production ... [DONE]
done
Dumping repositories ...
 * dev/dubbo ... [DONE]
 * dev/dubbo.wiki ... [SKIPPED]
 * dev/dubbox-master ... [DONE]
 * dev/dubbox-master.wiki ... [SKIPPED]
 * MobileTerminal/MobileDoc ... [SKIPPED]
 * MobileTerminal/MobileDoc.wiki ... [SKIPPED]
 * TrakCare/Doc ... [SKIPPED]
 * TrakCare/Doc.wiki ... [SKIPPED]
 * PerationMaintenance/PMDoc ... [DONE]
 * PerationMaintenance/PMDoc.wiki ... [DONE]
 * doc/his ... [DONE]
 * doc/his.wiki ... [SKIPPED]
 * PerationMaintenance/image ... [SKIPPED]
 * PerationMaintenance/image.wiki ... [SKIPPED]
done
Dumping uploads ... 
done
Dumping builds ... 
done
Dumping artifacts ... 
done
Dumping pages ... 
done
Dumping lfs objects ... 
done
Dumping container registry images ... 
[DISABLED]
Creating backup archive: 1552552057_2019_03_14_9.3.6_gitlab_backup.tar ... done
Uploading backup archive to remote storage ... skipped
Deleting tmp directories ... done
done
done
done
done
done
done
done
Deleting old backups ... skipping

在目錄/var/opt/gitlab/backups/下會生成一個備份文件如:1552552057_gitlab_backup.tar,其中1552552057即為此次備份都版本號。

還原備份(失?。?/strong>

gitlab-rake gitlab:backup:restore BACKUP=備份版本號

配置gitlab-yum源

[root@localhost ~]# cat << EOF > /etc/yum.repos.d/gitlab-ce.repo
> [gitlab-ce]
> name=gitlab-ce
> baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/
> repo_gpgcheck=0
> gpgcheck=0
> enable=1
> gpgkey=https://packages.gitlab.com/gpg.key
> EOF

yum install安裝

[root@localhost ~]# yum install gitlab-ce-9.5.9
已加載插件:fastestmirror, langpacks
gitlab-ce                                                                                                                | 2.9 kB 00:00:00   
gitlab-ce/primary_db                                                                                                          | 2.7 MB 00:00:01   
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
正在解決依賴關(guān)系
--> 正在檢查事務(wù)
---> 軟件包 gitlab-ce.x86_64.0.9.3.6-ce.0.el7 將被 升級
---> 軟件包 gitlab-ce.x86_64.0.9.5.9-ce.0.el7 將被 更新
--> 解決依賴關(guān)系完成

依賴關(guān)系解決

===============================================================================================================================================================================================================================================================
 Package                           架構(gòu)                           版本                                源                              大小
===============================================================================================================================================================================================================================================================
正在更新:
 gitlab-ce                          x86_64                          9.5.9-ce.0.el7                           gitlab-ce                          381 M

事務(wù)概要
===============================================================================================================================================================================================================================================================
升級 1 軟件包

總下載量:381 M
Is this ok [y/d/N]: Y
Downloading packages:
No Presto metadata available for gitlab-ce
gitlab-ce-9.5.9-ce.0.el7.x86_6 FAILED                                      18% [==================-                                          ] 659 B/s | 70 MB 137:35:05 ETA 
https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-9.5.9-ce.0.el7.x86_64.rpm: [Errno 12] Timeout on https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-9.5.9-ce.0.el7.x86_64.rpm: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
正在嘗試其它鏡像。
gitlab-ce-9.5.9-ce.0.el7.x86_6 FAILED                                      21% [======================                                         ] 646 B/s | 83 MB 134:19:56 ETA 
https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-9.5.9-ce.0.el7.x86_64.rpm: [Errno 12] Timeout on https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-9.5.9-ce.0.el7.x86_64.rpm: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
正在嘗試其它鏡像。
gitlab-ce-9.5.9-ce.0.el7.x86_6 FAILED                                      81% [===================================================================================-          ] 411 B/s | 311 MB 50:00:08 ETA 
https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-9.5.9-ce.0.el7.x86_64.rpm: [Errno 12] Timeout on https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-9.5.9-ce.0.el7.x86_64.rpm: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
正在嘗試其它鏡像。
gitlab-ce-9.5.9-ce.0.el7.x86_64.rpm                                                                                                   | 381 MB 00:01:52   
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
gitlab preinstall: Automatically backing up only the GitLab SQL database (excluding everything else!)
Dumping database ... 
Dumping PostgreSQL database gitlabhq_production ... [DONE]
done
Dumping repositories ...
[SKIPPED]
Dumping uploads ... 
[SKIPPED]
Dumping builds ... 
[SKIPPED]
Dumping artifacts ... 
[SKIPPED]
Dumping pages ... 
[SKIPPED]
Dumping lfs objects ... 
[SKIPPED]
Dumping container registry images ... 
[DISABLED]
Creating backup archive: 1552553362_2019_03_14_9.3.6_gitlab_backup.tar ... done
Uploading backup archive to remote storage ... skipped
Deleting tmp directories ... done
done
Deleting old backups ... skipping
 正在更新  : gitlab-ce-9.5.9-ce.0.el7.x86_64 [############################################################################################################################                                      ] 1/2 正在更新  : gitlab-ce-9.5.9-ce.0.el7.x86_64 [##############################################################################################################################                   正在更新  : gitlab-ce-9.5.9-ce.0.el7.x86_64                                                                                                1/2 


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

   _______ __ __     __
  / ____(_) /_/ /  ____ _/ /_
  / / __/ / __/ /  / __ `/ __ \
 / /_/ / / /_/ /___/ /_/ / /_/ /
 \____/_/\__/_____/\__,_/_.___/


gitlab: Thank you for installing GitLab!
gitlab: To configure and start GitLab, RUN THE FOLLOWING COMMAND:

sudo gitlab-ctl reconfigure

gitlab: GitLab should be reachable at http://192.168.x.x:8090/gitlab
gitlab: Otherwise configure GitLab for your system by editing /etc/gitlab/gitlab.rb file
gitlab: And running reconfigure again.
gitlab: 
gitlab: For a comprehensive list of configuration options please see the Omnibus GitLab readme
gitlab: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
gitlab: 
 清理    : gitlab-ce-9.3.6-ce.0.el7.x86_64                                                                                      2/2 
Checking PostgreSQL executables: OK
Shutting down all GitLab services except those needed for migrations
ok: down: gitaly: 1s, normally up
ok: down: gitlab-monitor: 0s, normally up
ok: down: gitlab-workhorse: 1s, normally up
ok: down: logrotate: 0s, normally up
ok: down: nginx: 1s, normally up
ok: down: node-exporter: 0s, normally up
ok: down: postgres-exporter: 0s, normally up
ok: down: postgresql: 0s, normally up
ok: down: prometheus: 0s, normally up
ok: down: redis: 1s, normally up
ok: down: redis-exporter: 0s, normally up
ok: down: sidekiq: 0s, normally up
ok: down: unicorn: 0s, normally up
ok: run: postgresql: (pid 3362) 1s
ok: run: redis: (pid 3370) 0s
run: postgresql: (pid 3362) 1s; run: log: (pid 866) 3488369s
run: redis: (pid 3370) 0s; run: log: (pid 897) 3488369s
Reconfiguring GitLab to apply migrations


 * Moving existing certificates found in /opt/gitlab/embedded/ssl/certs

 * Symlinking existing certificates found in /etc/gitlab/trusted-certs
gitlab Reconfigured!
Checking for an omnibus managed postgresql: OK
Checking if we already upgraded: OK
The latest version 9.6.3 is already running, nothing to do
Ensuring PostgreSQL is updated: OK
Restarting previously running GitLab services
ok: run: gitaly: (pid 4046) 2s
ok: run: gitlab-monitor: (pid 4086) 1s
ok: run: gitlab-workhorse: (pid 4068) 2s
ok: run: logrotate: (pid 4120) 1s
ok: run: nginx: (pid 4126) 0s
ok: run: node-exporter: (pid 4177) 0s
ok: run: postgres-exporter: (pid 4184) 1s
ok: run: postgresql: (pid 3362) 72s
ok: run: prometheus: (pid 4094) 3s
ok: run: redis: (pid 3370) 71s
ok: run: redis-exporter: (pid 4194) 0s
ok: run: sidekiq: (pid 4203) 1s
ok: run: unicorn: (pid 4216) 0s

Upgrade complete! If your GitLab server is misbehaving try running

  sudo gitlab-ctl restart

before anything else. If you need to roll back to the previous version you can
use the database backup made during the upgrade (scroll up for the filename).
 驗證中   : gitlab-ce-9.5.9-ce.0.el7.x86_64                                                                                      1/2 
 驗證中   : gitlab-ce-9.3.6-ce.0.el7.x86_64                                                                                      2/2 

更新完畢:
 gitlab-ce.x86_64 0:9.5.9-ce.0.el7                                                                                              

完畢!

升級Gitlab(注意:由于升級不能跨越大版本號,因此只能升級到當(dāng)前大版本號到最高版本,方可升級到下一個大版本號)

[root@localhost ~]# cd /var/opt/gitlab/backups/
[root@localhost backups]# ll
總用量 6532
-rw-------. 1 git git 6625280 3月 14 16:27 1552552057_2019_03_14_9.3.6_gitlab_backup.tar
-rw-------. 1 git git  61440 3月 14 16:49 1552553362_2019_03_14_9.3.6_gitlab_backup.tar

16:27 生成的tar包是我手動執(zhí)行備份命令生成
16:49 生成的tar包是yum更新版本自動備份

依次執(zhí)行下面指令逐步升級,在每一步安裝成功后如果發(fā)現(xiàn)界面500,不可訪問,那么執(zhí)行g(shù)itlab-ctl reconfigure指令刷新配置文件。(一定保證數(shù)據(jù)可以正常訪問方可執(zhí)行下一步升級指令)

yum install gitlab-ce-8.17.8-ce.0.el7
yum install gitlab-ce-9.5.9-ce.0.el7
yum install gitlab-ce-10.0.0-ce.0.el7
yum install gitlab-ce-10.8.0-ce.0.el7
yum install gitlab-ce-11.3.0-ce.0.el7

查看當(dāng)前版本號

[root@localhost backups]# cat /opt/gitlab/embedded/service/gitlab-rails/VERSION
9.5.9

FAQ

[ERROR] OpenSSL::Cipher::CipherError (bad decrypt):
gitlab-rails runner "Project.where.not(import_url: nil).each { |p| p.import_data.destroy if p.import_data }"

[ERROR] Error executing action `run` on resource 'ruby_block[directory resource: /var/opt/gitlab/git-data/repositories]'
chmod -R 2770 /var/opt/gitlab/git-data

感謝各位的閱讀!關(guān)于“CentOS7下怎么升級GitLab”這篇文章就分享到這里了,希望以上內(nèi)容可以對大家有一定的幫助,讓大家可以學(xué)到更多知識,如果覺得文章不錯,可以把它分享出去讓更多的人看到吧!

名稱欄目:CentOS7下怎么升級GitLab
分享路徑:http://aaarwkj.com/article10/iggcdo.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站導(dǎo)航、移動網(wǎng)站建設(shè)靜態(tài)網(wǎng)站、商城網(wǎng)站、網(wǎng)站排名、做網(wǎng)站

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

粉嫩av北条麻妃电影| 亚洲精品入口一区二区| 婷婷久久香蕉五综合加勒比| 手机在线观看av大片| 免费日韩黄片在线观看| 国产激情视频一区二区三区| 久久精品国产91麻豆| 国产精品大全中文字幕| 正在播放日韩黄色精品| 丝袜美腿亚洲欧美日韩| 成年人免费国产视频网站| 中文字幕乱码亚洲中文在线| 国产特级黄片免费观看| 2021久久国产综合精品青草| 日韩av高清免费播放| 精品毛片久久久久久久久| 久久久亚洲熟妇熟女一区二区| 日本一二三四卡久久精品| 免费人成在线观看网站免费观看 | 激情综合色综合久久丁香| 国产情侣自拍在线观看| 风韵犹存丰满大屁股熟妇| 在线午夜免费视频观看| 婷婷av一区二区三区| 国产一区二区三区在线看片| 一区二区精品人妻av| 日韩女优中文字幕在线播放| 麻豆视传媒短视频免费看| 日韩精品一区福利合集| 欧美日韩一区二区三区色| 亚洲青青草原一区二区| 国产丝袜肉丝在线播放| 久久视热频这里只有精品| 萌白的所有视频在线观看| 最美是你免费视频观看| 亚洲成人日韩在线播放| 色婷婷亚洲婷婷亚洲最大| 亚洲精品a在线观看av| 国产av剧情精品亚洲| 欧美午夜福利一级高清| 欧美亚洲另类色自拍偷拍|