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

    参考官网安装 https://about.gitlab.com/install/#centos-6


    1.安装依赖
    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


    2.安装gitlab

    方法一  在线安装最新版
    curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
    sudo EXTERNAL_URL="http://gitlab.oldshunguang.com" yum -y install gitlab-ee

    此处的“http://gitlab.example.com”换成你公司gitlab服务器的域名

    方法二  下载指定版本安装(本案例因迁移需要指定版本,使用此方案)

    到https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/下载安装版本

    gitlab-ce-10.8.1-ce.0.el7.x86_64.rpm

    可在原gitlab服务器的admin area的组件信息部分可查到

    3.修改gitlab配置文件指定服务器ip和自定义端口:

    vim  /etc/gitlab/gitlab.rb
     external_url 'http://xxx.com'
    换成你公司gitlab服务器的域名
     
    注意这里设置的端口不能被占用,默认是8080端口,如果8080已经使用,请自定义其它端口,并在防火墙设置开放相对应得端口
     
    4.重置并启动GitLab
    gitlab-ctl reconfigure
    gitlab-ctl restart

    5.登录
    第一次登录,设置密码,并使用root用户登录

    原安装的版本是

    gitlab-ce-10.8.1-ce.0.el7.x86_64.rpm

    几个命令:
    gitlab-ctl reconfigure
    gitlab-ctl status
    gitlab-ctl stop
    gitlab-ctl start


    几个配置文件:
    /etc/gitlab/gitlab.rb
    /var/opt/gitlab/gitlab-rails/etc/unicorn.rb
    /var/opt/gitlab/gitlab-rails/etc/gitlab.yml
    /var/opt/gitlab/nginx/conf/*

     另参考: http://www.cnblogs.com/wenwei-blog/p/5861450.html

  • 相关阅读:
    bzoj 4197 寿司晚宴
    Codeforces Round #429 (Div. 2)ABC
    Codeforces Round #386 (Div. 2) E
    UESTC 电子科大专题训练 数论 L
    UESTC 电子科大专题训练 数论 E
    Codeforces Round #396 D
    UESTC 电子科大专题训练 DP-E
    UESTC 电子科大专题训练 数据结构 L
    UESTC 电子科大专题训练 数据结构 K
    UESTC 电子科大专题训练 数据结构-E
  • 原文地址:https://www.cnblogs.com/newalan/p/9970755.html
Copyright © 2011-2022 走看看