44

CentOS7 配置 Gitlab

 5 years ago
source link: http://www.importnew.com/29971.html?amp%3Butm_medium=referral
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

公司在做技术选型的时候,我力排众议决定搭一套基于Git+Gitlab+Jenkins+Nginx+Tomcat+Redis的架构,无论是代码仓库管理还是自动部署对以后的项目迭代都有重大的意义。当然,现在研发部就我一个人懂技术,所以说基本上技术方面大家都听我的,虽然我也很low…

1.Gitlab简介

Gitlab是利用Ruby On Rails开发的一个开源版本管理系统,实现了一个自托管的Git项目仓库,是集代码托管,测试,部署于一体的开源git仓库管理软件,可通过web界面来进行访问公开的或私人项目。与Github类似,Gitlab能够浏览代码,管理缺陷和注释。可以管理团队对仓库的访问,它非常易于浏览提交过的版本,并提供一个文件历史库。它还提供一个代码片段收集功能可以轻松实现代码复用,便于日后需要的时候查找。

  • Git:是一种版本控制系统,是一个命令,是一种工具。
  • Gitlib:是用于实现Git功能的开发库。
  • Github:是一个基于Git实现的在线代码托管仓库,公开项目是免费的,也可以付费创建私人项目。
  • Gitlab:是一个基于Git实现的在线代码仓库托管软件,可以用Gitlab搭建一套类似Github的系统。
  • 摘抄自: 原文链接

2.Gitlab下载

Gitlab下载地址

faEzimF.png!web

3.安装Gitlab

  • yum install -y curl openssh-server openssh-clients postfix cronie policycoreutils-python , 安装Gitlab依赖,10.0版本之后需要安装 policycoreutils-python
  • systemctl enable postfix && systemctl start postfix , 设置开机启动
  • rz , 上传到Linux服务器
  • rpm -i gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm , 开始安装
vyi6b2E.png!web
  • vim /etc/gitlab/gitlab.rb , 修改Gitlab地址及端口
RryaYrF.png!web
  • gitlab-ctl reconfigure , 加载配置
  • gitlab-ctl restart , 重新启动
uIRFbir.png!web

4.访问Gitlab,基础配置

  • 访问地址ip:端口号 会出现重置密码页面
ayQrUf3.png!web
  • 登录成功
MFRZzam.png!web
  • vim /etc/gitlab/gitlab.rb , 配置发送邮件

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK