• 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

  • 相关阅读:
    Oracle中使用游标详解
    arc140 vp 记录
    CF1710D Recover theTree
    2022.8 做题记录
    21noip赛前20天 day10 简要题解
    2022.7.22 AGC028F&CF1463F&P7740
    arc141 vp 记录
    2022.7.25 AGC027F&AGC032F&AGC013F
    2022.7.21 AGC046D&P6790&AGC041F
    2022.7.20 AGC052D&P4338&AGC033E
  • 原文地址:https://www.cnblogs.com/rslai/p/9109624.html
Copyright © 2020-2023  润新知