美文网首页
centos7安装gitlab私有仓库

centos7安装gitlab私有仓库

作者: 南南宫问天 | 来源:发表于2020-04-22 19:16 被阅读0次

    1.关闭防火墙和selinux

    [root@czq ~]# systemctl stop firewalld
    [root@czq ~]# systemctl disable firewalld
    [root@czq ~]# setenforce 0
    [root@czq ~]# sed -i.bak '7s/SELINUX=enforcing/SELINUX=disabled/g' /etc/sysconfig/selinux 
    

    2.安装相关依赖软件

    [root@czq ~]# yum install -y curl policycoreutils-python openssh-server
    

    3.安装gitlab

    [root@czq ~]# wget --content-disposition https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/7/gitlab-ce-11.6.2-ce.0.el7.x86_64.rpm/download.rpm  ##拉取软件
    [root@czq ~]# rpm -ivh gitlab-ce-11.6.2-ce.0.el7.x86_64.rpm
    

    4.修改web访问地址

    vim /etc/gitlab/gitlab.rb 
    external_url 'http://192.168.26.20' ##改成本地的ip
    

    5.初始化gitlab

    [root@czq ~]# gitlab-ctl configure
    

    6.web访问
    http://ip地址

    image.png
    初始化密码 不少与8位
    image.png

    用户名root 密码初始化的密码


    image.png

    登录成功


    image.png

    相关文章

      网友评论

          本文标题:centos7安装gitlab私有仓库

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