美文网首页
GitLab 7.4.3 升级

GitLab 7.4.3 升级

作者: __Bw__ | 来源:发表于2019-11-04 19:23 被阅读0次

当前阿里云 ECS centos 6.5 部署的 GitLab 7.4.3 是在 2016 年一键安装部署的,版本非常低。升级一下。

升级步骤

  1. 备份
gitlab-rake gitlab:backup:create
  1. 下载 rpm
wget https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/6/gitlab-ce-7.13.5-ce.0.el6.x86_64.rpm/download.rpm
  1. 安装下载的包
rpm -Uvh gitlab-ce-7.13.5-ce.0.el6.x86_64.rpm
  1. 重启服务
gitlab-ctl restart

升级其它版本

rpm -Uvh gitlab-ce-*.rpm

遇到的问题

  1. 阿里云 rpm 包下载太慢?下载了几次包,发现有个 IP 特别快,可以绑定 host 试试
13.225.157.44 d20rj4el6vkp4c.cloudfront.net
  1. 安装包时报错 error: "net.bridge.bridge-nf-call-ip6tables" is an unknown key
================================================================================
    Error executing action `run` on resource 'execute[sysctl]'
    ================================================================================
    
    Mixlib::ShellOut::ShellCommandFailed
    ------------------------------------
    Expected process to exit with [0], but received '255'
    ---- Begin output of /sbin/sysctl -p /etc/sysctl.conf ----
    STDOUT: net.ipv4.ip_forward = 0
    net.ipv4.conf.default.accept_source_route = 0
    kernel.sysrq = 1
    kernel.core_uses_pid = 1
    kernel.msgmnb = 65536
    kernel.msgmax = 65536
    kernel.shmmax = 68719476736
    kernel.shmall = 4294967296
    vm.swappiness = 0
    net.ipv4.neigh.default.gc_stale_time = 120
    net.ipv4.conf.all.rp_filter = 0
    net.ipv4.conf.default.rp_filter = 0
    net.ipv4.conf.default.arp_announce = 2
    net.ipv4.conf.all.arp_announce = 2
    net.ipv4.tcp_max_tw_buckets = 5000
    net.ipv4.tcp_syncookies = 1
    net.ipv4.tcp_max_syn_backlog = 1024
    net.ipv4.tcp_synack_retries = 2
    net.ipv4.conf.lo.arp_announce = 2
    net.core.somaxconn = 1024
    STDERR: error: "net.bridge.bridge-nf-call-ip6tables" is an unknown key
    error: "net.bridge.bridge-nf-call-iptables" is an unknown key
    error: "net.bridge.bridge-nf-call-arptables" is an unknown key

解决办法

modprobe bridge
lsmod|grep bridge

参考链接:error: "net.bridge.bridge-nf-call-ip6tables" is an unknown key

相关文章

网友评论

      本文标题:GitLab 7.4.3 升级

      本文链接:https://www.haomeiwen.com/subject/fmzdbctx.html