zoukankan      html  css  js  c++  java
  • Centos7安装GitLab

    1、首先按官网提示先安装依赖,然后执行下面命令添加yum源,选择gitlab-ce社区版
    curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash

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

    3、安装gitlab-ce
    sudo yum install -y gitlab-ce

    以上,即可安装完成。

    其他:
    1、启动gitlab:gitlab-ctl start,默认8080端口,设置端口需要修改配置vi /etc/gitlab/gitlab.rb,external_url设置域名和端口号,没有域名则设置ip

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


    2、输入ip:端口号或域名:端口号后访问,如果出现502-Whoops, GitLab is taking too much time to respond,则说明端口被占用,默认是8080端口,第一次访问需要直接修改root密码

    这里修改的external_url会影响到后面创建工程的git远程服务器地址,假如我修改为localhost
    external_url 'http://localhost:8099',则出现下图的情况,最好还是填自己的域名或者直接ip地址。

    每次修改配置文件/etc/gitlab/gitlab.rb后需要gitlab-ctl reconfigure才能生效

  • 相关阅读:
    opencv安装
    安装电脑
    勿忘心安
    Linux操作
    listBox1_DrawItem
    今天被骂
    我研究群体行为,希望大家一起讨论
    Matlab高级绘图
    网址
    下面哪些机制可以用于进程间通信?
  • 原文地址:https://www.cnblogs.com/niuniu0108/p/12714946.html
Copyright © 2011-2022 走看看