zoukankan      html  css  js  c++  java
  • centos7上安装指定版本gitlab

      当我们在做gitlab服务器迁移的时候需要两台服务器中的gitlab相同,如果不同则不让回复git备份。这样我们就要安装指定版本的gitlab。

     1. 安装依赖软件

    yum -y install policycoreutils openssh-server openssh-clients postfix
    

    2.设置postfix开机自启,并启动,postfix支持gitlab发信功能

    systemctl enable postfix && systemctl start postfix
    

    3.下载gitlab安装包,然后安装

    centos 6系统的下载地址:

      https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6

      https://mirrors.tuna.tsinghua.edu.cn/gitlab-ee/yum/el6
    centos 7系统的下载地址:

      https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7

      https://mirrors.tuna.tsinghua.edu.cn/gitlab-ee/yum/el7

    4.下载rpm包并安装:

    https://mirrors.tuna.tsinghua.edu.cn/gitlab-ee/yum/el7/gitlab-ee-10.2.1-ee.0.el7.x86_64.rpm
    

    5.安装

    rpm -i gitlab-ee-10.2.1-ee.0.el7.x86_64.rpm

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

    vi /etc/gitlab/gitlab.rb
    

      按照如下修改

    external_url 'http://192.168.2.36:888'
    

      ps:注意这里设置的端口不能被占用,默认是8080端口,如果8080已经使用,请自定义其它端口,并在防火墙设置开放相对应得端口

    7.重置并启动GitLab

    gitlab-ctl reconfigure
    gitlab-ctl restart
    

    8.访问 GitLab页面

    访问刚才输入的external_url设置root密码

    注:如果按照上述方法无法安装,可以按照如下链接安装第一步,如果还是不行可以先安装最新然后卸载后重新安装

       https://about.gitlab.com/installation/#centos-7

      

    参考文档:

      https://www.cnblogs.com/wenwei-blog/p/5861450.html

  • 相关阅读:
    第2课 有符号与无符号
    第1课 基本数据类型
    HDU 5821 Ball
    Codeforces Round #228 (Div. 2) C. Fox and Box Accumulation
    HDU 5810 Balls and Boxes
    HDU 5818 Joint Stacks
    HDU 5813 Elegant Construction
    Codeforces Round #357 (Div. 2)C. Heap Operations
    Codeforces Round #364 (Div. 2) C. They Are Everywhere
    HDU5806 NanoApe Loves Sequence Ⅱ
  • 原文地址:https://www.cnblogs.com/rslai/p/9109624.html
Copyright © 2011-2022 走看看