zoukankan      html  css  js  c++  java
  • 安装GITLAB

    访问gitlab官方网站:

    https://about.gitlab.com/

    选择“Download”标签,然后在”Select Operating System“标签下面选择系统。

    这里以ubuntu 14.04为例:

    首先会有提示先检查是否满足硬件需求:推荐是2核心,4G内存,SSD存储。

    我这边是建立的虚拟机,2核心,2G内存,20G硬盘。

    1、硬件没有问题,开始安装必要的依赖组件:

    sudo apt-get install curl openssh-server ca-certificates postfix

    2、安装gitlab

    中国大陆这边直接安装的话会非常慢,官网有介绍用清华大学的镜像站安装:

    首先信任 GitLab 的 GPG 公钥:

    curl https://packages.gitlab.com/gpg.key 2> /dev/null | sudo apt-key add - &>/dev/null

    把下面一段内容写进 /etc/apt/sources.list.d/gitlab-ce.list

    deb https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/ubuntu trusty main

    安装:

    sudo apt-get update
    sudo apt-get install gitlab-ce

    参考:https://mirror.tuna.tsinghua.edu.cn/help/gitlab-ce/

    3、配置和启动gitlab

     sudo gitlab-ctl reconfigure

    4、访问站点

    访问VM的IP,默认为80 port,输入admin的密码,即可登入gitlab首页

  • 相关阅读:
    keepalived的一些。。
    virtualbox复制了以后网卡启动不了。
    mysql安装之后需要调的参数
    mysql5.6 thread pool
    $releasever 不正确解析
    linux 被入侵后扫尾工作
    简单启动脚本编写
    tcmalloc安装
    rsyslog及loganalyzer
    nsswitch & pam
  • 原文地址:https://www.cnblogs.com/windchen/p/6227799.html
Copyright © 2011-2022 走看看