zoukankan      html  css  js  c++  java
  • GitLab 安装

    GitLab 简介:

    (1) Git 是一个分布式的开源版本控制系统,也就是说,每台客户端都可以充当控制中心,我从本机拉取代码,再提交代码到本机,不需要依赖网络,各自开发各自的
    (2) Git 也可以设置一个服务端,用来合并多台客户端的最终版本代码,平时的小改动由我们自己电脑里面的控制中心来管理,服务端不用关心
    (3) GitHub 是公开的,我们可以拿来作为 git 服务端,但是 GitHub 的私有仓库是要花钱买的,所以我们可以想办法搭建一个私有的,只供自己公司使用的服务端
    (4) GitLab 也是公开的,且私有仓库也是免费的,跟 GitHub 一样是 web 界面的 git 服务端,因此这里我们选择 GitLab 作为服务端

    GitLab 安装:

    [root@localhost ~]$ cat /etc/yum.repos.d/gitlab.repo    # 编辑 gitlab yum 源
    [gitlab-ce]
    name=Gitlab CE Repository
    baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever/
    gpgcheck=0
    enabled=1
    [root@localhost ~]$ yum makecache               # 把服务器的包下载到本地
    [root@localhost ~]$ yum install -y gitlab-ce    # 安装gitlab-ce(社区版)
    [root@localhost ~]$ gitlab-ctl reconfigure      # 自动配置gitlab并启动

    GitLab 会安装以下服务,因此最好单独拿一台机器部署它:

     alertmanager  gitaly  gitlab-monitor  gitlab-workhorse  logrotate  nginx  sidekiq
     node-exporter  postgres-exporter  postgresql  prometheus  redis  unicorn  redis-exporter 

    在浏览器访问 GitLab ( 直接输入 ip 即可,或者用 nginx 代理 ),默认的用户名是 root,密码需要我们自行修改:

        

  • 相关阅读:
    LeetCode Subsets II
    LeetCode Rotate Image
    LeetCode Palidrome Number
    LeetCode Generate Parentheses
    LeetCode Maximum Subarray
    LeetCode Set Matrix Zeroes
    LeetCode Remove Nth Node From End of List
    Linux Loop设备 使用
    Linux 文件系统大小调整
    LeetCode N-Queens II
  • 原文地址:https://www.cnblogs.com/pzk7788/p/10294988.html
Copyright © 2011-2022 走看看