• centos7 安装部署gitlab



    Gitlab官网地址:https://about.gitlab.com/downloads/

    Linux系统环境: Centos7

    gitlab服务安装之前需要安装一些依赖包:
    yum install postfix
    systemctl enable postfix
    systemctl start postfix

    一、安装最新版本的gitlab
    yum install git gitlab-ce
    vim /etc/yum.repos.d/gitlab-ce.repo
    [gitlab-ce]
    name=gitlab-ce
    baseurl=http://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7
    repo_gpgcheck=0
    gpgcheck=0
    enabled=1
    gpgkey=https://packages.gitlab.com/gpg.key
    sudo gitlab-ctl reconfigure
    sudo gitlab-ctl restart

    二、安装指定版本的gitlab

    例如下载安装10.8.2版本的gitlab
    下载地址:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.8.2-ce.0.el7.x86_64.rpm

    wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.8.2-ce.0.el7.x86_64.rpm
    rpm -i gitlab-ce-10.8.2-ce.0.el7.x86_64.rpm
    sudo gitlab-ctl reconfigure
    sudo gitlab-ctl start

    三、卸载gitlab
    1、# sudo gitlab-ctl stop        ### 停止gitlab
    2、# sudo rpm -e gitlab-ce    ### 卸载gitlab
    3、查看gitlab进程

      # ps -elf  | grep gitlab

      # kill -9 进程号

    4、删除gitlab文件
    find / -name gitlab | xargs rm -rf   ### 删除所有包含gitlab的文件及目录

    四、安装遇到的错误信息

    浏览器上输入ip地址,直接进入gitlab页面,如果刷新不出来,报错
    1、找不到服务
    原因:防火墙开启,阻挡了外面的连接,关闭firewall即可,命令systemctl stop firewalld
    2、505错误
    内存太小,删除一些无用的文件即可
    3、502错误
    端口被占用,修改默认端口

  • 相关阅读:
    java.utils.HashMap数据结构分析(转)
    oracle什么时候须要commit
    CreateFont具体解释
    Java工厂模式
    簡單SQL存儲過程實例
    Cocos2d-x 3.0新引擎文件夹结构
    设计模式之十 适配器模式
    腰围2尺1,2,3,4,5,6,7,8寸各自等于是多少厘米/英寸(对比表)
    iOS 基础函数解析
    内部元素一一相应的集合的算法优化,从list到hashmap
  • 原文地址:https://www.cnblogs.com/carriezhangyan/p/10729158.html
Copyright © 2020-2023  润新知