zoukankan      html  css  js  c++  java
  • Gitlab 服务器搭建

    一、官网地址

      首页:https://about.gitlab.com/

      安装说明:https://about.gitlab.com/installation/

    二、安装命令摘录 

      实际问题:yum 安装 gitlab-ee(或 ce)时,需要联网下载几百 M 的安装文件,非常耗时,所以应提前把所需 RPM 包下载并安装好。

      下载地址为:https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/7/gitlab-ce-10.8.2-ce.0.el7.x86_64.rpm

      调整后的安装过程:

    sudo rpm -ivh /opt/gitlab-ce-10.8.2-ce.0.el7.x86_64.rpm
    sudo yum install -y curl policycoreutils-python openssh-server cronie
    sudo lokkit -s http -s ssh
    sudo yum install postfix
    sudo service postfix start
    sudo chkconfig postfix on
    curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
    sudo EXTERNAL_URL="http://gitlab.example.com" yum -y install gitlab-ce

      可将上述命令放在一个脚本文件中,直接执行脚本文件,耐心等待即可

      当前步骤完成后重启。

    三、gitlab 服务操作

      初始化配置 gitlab

        gitlab-ctl reconfigure

      启动 gitlab 服务

        gitlab-ctl start

      停止 gitlab 服务

        gitlab-ctl stop

    四、浏览器访问 

      访问 Linux 服务器 IP 地址即可,如果想访问 EXTERNAL_URL 指定的域名还需要配置域名服务器或本地 hosts 文件。

        ※应该会需要停止防火墙服务

          service firewalld stop

      初次登录时需要为 gitlab 的 root 用户设置密码。

      

      出现此GitLab登陆界面,说明安装成功。

      

  • 相关阅读:
    [NOIP2017]宝藏 子集DP
    [NOI2017]蔬菜 贪心
    hihoCoder#1698 : 假期计划 组合数
    KNIGHTS
    动态图连通性(线段树分治+按秩合并并查集)
    CF868F Yet Another Minimization Problem 分治决策单调性优化DP
    【POJ】【3308】Paratroopers
    【BZOJ】【3437】小P的牧场
    【BZOJ】【3156】防御准备
    【BZOJ】【1010】【HNOI2008】玩具装箱Toy
  • 原文地址:https://www.cnblogs.com/zyc-blogs/p/11025711.html
Copyright © 2011-2022 走看看