GitLab 简介
GitLab 是一个用于仓库管理系统的开源项目。使用Git作为代码管理工具,可通过Web界面进行访问公开的或者私人项目。
它拥有与Github类似的功能,能够浏览源代码,管理缺陷和注释。GitLab拥有GitHub拥有的一切
可以管理团队对仓库的访问,它非常易于浏览提交过的版本并提供一个文件历史库。团队成员可以利用内置的简单聊天程序(Wall)进行交流。
由于系统自带的yum源没有所需的安装包,所以新增yum源,注意对应自己系统的版本
vim /etc/yum.repos.d/gitlab-ce.repo
[gitlab-ce]
name=gitlab-ce
baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6/
repo_gpgcheck=0
gpgcheck=0
enabled=1
gpgkey=https://packages.gitlab.com/gpg.key
安装gitlab
安装依赖
yum install curl openssh-server openssh-clients postfix cronie
service postfix start
chkconfig postfix on
#这句是用来做防火墙的,避免用户通过ssh方式和http来访问。
lokkit -s http -s ssh
yum -y install gitlab-ce
修改gitlab配置文件指定服务器ip和自定义端口
vim /etc/gitl