zoukankan      html  css  js  c++  java
  • centos服务器快速安装gitlab

    GitLab的安装及使用教程

    1、配置yum源
    vim /etc/yum.repos.d/gitlab-ce.repo
    复制以下内容:

    [gitlab-ce]
    name=Gitlab CE Repository
    baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever/
    gpgcheck=0
    enabled=1

    2、更新本地yum缓存
    sudo yum makecache

    3、安装GitLab社区版
    sudo yum install gitlab-ce #自动安装最新版
    sudo yum install gitlab-ce-x.x.x #安装指定版

    GitLab常用命令

    sudo gitlab-ctl start # 启动所有 gitlab 组件;
    sudo gitlab-ctl stop # 停止所有 gitlab 组件;
    sudo gitlab-ctl restart # 重启所有 gitlab 组件;
    sudo gitlab-ctl reconfigure # 启动服务;
    sudo gitlab-ctl status # 查看服务状态;
    sudo vim /etc/gitlab/gitlab.rb # 修改默认的配置文件;
    gitlab-rake gitlab:check SANITIZE=true --trace # 检查gitlab;
    sudo gitlab-ctl tail # 查看日志

  • 相关阅读:
    C# WPF – 利用“Attached Property” 把 RoutedEvent 接上 ICommand
    文件输入输出代码
    strcpy()
    heaplog
    单链表范例
    贪吃蛇
    时钟程序
    herizai_CD2所做答案
    6月25日代码
    6月24日代码
  • 原文地址:https://www.cnblogs.com/pzyin/p/13554927.html
Copyright © 2011-2022 走看看