zoukankan      html  css  js  c++  java
  • 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错误
    端口被占用,修改默认端口

  • 相关阅读:
    命名空间
    XML
    关于命名空间
    gitbook 入门教程之 gitbook 简介
    git 入门教程之备忘录[译]
    git 入门教程之知识速查
    git 入门教程之忽略文件
    git 入门教程之个性化 git
    git 入门教程之里程碑式标签
    git 入门教程之本地和远程仓库的本质
  • 原文地址:https://www.cnblogs.com/carriezhangyan/p/10729158.html
Copyright © 2011-2022 走看看