基于清华大学源安装gitlab-ce

    1.添加repo文件

    1. cat> /etc/yum.repos.d/gitlab-ce.repo<< EOF
    2. [gitlab-ce]
    3. name=Gitlab CE Repository
    4. baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/
    5. gpgcheck=0
    6. enabled=1
    7. EOF

    2.安装依赖

    1. yum install curl policycoreutils-python openssh-server

    3.安装gitlab-ce

    yum install gitlab-ce
    4.修改访问地址

    1. vim /etc/gitlab/gitlab.rb
    2. // 配置自己的 域名
    3. external_url 'http://10.10.10.7'

    5.重新加载配置
    gitlab-ctl reconfigure

    6.启动
    gitlab-ctl start