zoukankan      html  css  js  c++  java
  • gitlab

    #!/bin/bash
    kk=`ip a|grep ens|grep inet|awk -F ' ' '{print $2}'|awk -F '/' '{print $1}'`
    echo "[gitlab-ce]" >> /etc/yum.repos.d/gitlab-ce.repo
    echo "name=Gitlab CE Repository" >> /etc/yum.repos.d/gitlab-ce.repo
    echo "baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever/" >> /etc/yum.repos.d/gitlab-ce.repo
    echo "gpgcheck=0" >> /etc/yum.repos.d/gitlab-ce.repo
    echo "enabled=1" >> /etc/yum.repos.d/gitlab-ce.repo
    yum makecache
    yum -y install gitlab-ce
    sed -i "/external_url 'http://gitlab.example.com'/aexternal_url 'http://$kk'" /etc/gitlab/gitlab.rb
    sed "/# unicorn['port'] = 8080/aunicorn['port'] = 9999" /etc/gitlab/gitlab.rb //修改端口,不然很可能网页出现505的错误
    gitlab-ctl reconfigure
    gitlab-ctl restart

  • 相关阅读:
    tcpdump 筛选抓包
    TCP拥塞避免
    【转载】TCP协议
    go 参数传递的是值还是引用 (转)
    go 数组指针 指针数组
    go 协程
    go 接口实现
    go函数可见性
    go 继承
    go 结构体函数
  • 原文地址:https://www.cnblogs.com/smlile-you-me/p/9550281.html
Copyright © 2011-2022 走看看