zoukankan      html  css  js  c++  java
  • centos7 部署 gitlab

    【目的】在centos7系统上面部署gitlab服务;

    【环境简介】

    系统:centos 7.5

    gitlab-ce版本:13.10.4

    防火墙:关闭状态

    【部署过程】

    #! /bin/bash
    #  Description: install gitlab on centos7
    
    # 定义gitlab域名
    DNS_NAME="gitlab.changyuan.com"
    
    # 安装gitlab
    yum -y install policycoreutils openssh-server openssh-clients postfix
    wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-13.10.4-ce.0.el7.x86_64.rpm
    yum -y install gitlab-ce-13.10.4-ce.0.el7.x86_64.rpm
    
    # 修改gitlab配置文件
    cp /etc/gitlab/gitlab.rb{,.ori}
    sed -i "/^external_url/ s/gitlab.example.com/${DNS_NAME}/g" /etc/gitlab/gitlab.rb
    
    # 重启服务
    clear; echo "配置gitlab文件,并重启gitlab服务"
    sleep 1
    gitlab-ctl reconfigure
    gitlab-ctl restart
    

    【测试过程】

    登陆网站:http://IP地址;

    下面是配置测试部分

     【建立连接】

    比如A主机要连接gitlab,需要将A主机的共要文件上传到gitlab的web端;

    (1)A主机上面生成秘钥文件:

     (2)复制公钥文件

     (3)将公钥文件粘贴到web端

     (4)再A主机上面测试是否连接成功

     显示welcome 通gitlab,则表明成功了。

     【报错总结】

    【问题1】

    【问题现象】

    搭建完gitlab之后,已经创建了user.name和user.email、并且注册了登陆账号,登陆web界面时报错:

    Your account is pending approval from your GitLab administrator and hence blocked.(超级恶心的报错)

    【解决方法】

    原文链接:

  • 相关阅读:
    Palindrome Partitioning
    Minimum Path Sum
    Maximum Depth of Binary Tree
    Minimum Depth of Binary Tree
    Unique Binary Search Trees II
    Unique Binary Search Trees
    Merge Intervals
    Merge Sorted Array
    Unique Paths II
    C++ Primer Plus 笔记第九章
  • 原文地址:https://www.cnblogs.com/yunjisuan1024/p/14883106.html
Copyright © 2011-2022 走看看