Git 构建分布式版本控制系统图文解释

版本控制概念

记录开发文件的时间机器
更好的开发
挽回代码错误带来的损失
分类
1、本地版本控制系统
在这里插入图片描述

2、集中化的版本控制系统  CVS、Subversion(SVN)

在这里插入图片描述

3、分布式版本控制系统GIT

在这里插入图片描述

产品分类
github git gitlab

部署gitlab

官网链接
https://about.gitlab.com/downloads/#centos7

  1. Install and configure the necessary dependencies
    4G以上内存
    yum -y install curl policycoreutils openssh-server openssh-clients
    安装和配置必要的依赖关系
    在这里插入图片描述

    systemctl enable sshd
    开机自启动ssh程序

    systemctl start sshd
    在这里插入图片描述

    yum install postfix
    安装邮件程序

    systemctl start postfix

    systemctl enable postfix
    在这里插入图片描述

    systemctl stop firewalld
    防火墙关上!
    systemctl disable firewalld

    selinux也要记得关上
    2. Add the GitLab package server and install the package (添加GitLab软件包存储库并安装软件包)
    语法: curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
    解释:
    Next, install the GitLab package. Make sure you have correctly set up your DNS, and change https://gitlab.example.com to the URL at which you want to access your GitLab instance. Installation will automatically configure and start GitLab at that URL.
    For https:// URLs GitLab will automatically request a certificate with Let’s Encrypt, which requires inbound HTTP access and a valid hostname. You can also use your own certificate or just use http://
    语法:sudo EXTERNAL_URL=“https://gitlab.example.com” yum install -y gitlab-ee

  2. Browse to the hostname and login
    On your first visit, you’ll be redirected to a password reset screen. Provide the password for the initial administrator account and you will be redirected back to the login screen. Use the default account’s username root to login.

See our documentation for detailed instructions on installing and configuration.

  1. Set up your communication preferences
    Visit our email subscription preference center to let us know when to communicate with you. We have an explicit email opt-in policy so you have complete control over what and how often we send you emails.

Twice a month, we send out the GitLab news you need to know, including new features, integrations, docs, and behind the scenes stories from our dev teams. For critical security updates related to bugs and system performance, sign up for our dedicated security newsletter.

Important note: If you do not opt-in to the security newsletter, you will not receive security alerts.

  1. Configure sign-up restrictions and sign-in preferences.
    After completing your installation, consider the recommended practices to secure your GitLab instance.
    我在安装时遇到了yum源的问题,我重新改用了安装包,
    在这里插入图片描述
    在这里插入图片描述
    登录上之后就是这样的页面
    在这里插入图片描述
    在这里插入图片描述
    在这里插入图片描述
    在这里插入图片描述
    创建密匙
    在这里插入图片描述
    在这里插入图片描述

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值