码迷,mamicode.com
首页 > 其他好文 > 详细

CentOS6.5安装gitlab

时间:2015-02-10 11:29:37      阅读:219      评论:0      收藏:0      [点我收藏+]

标签:gitlab gitlab-shell ruby mysql gem

GitLab,是一个利用 Ruby on Rails 开发的开源应用程序,实现一个自托管的Git项目仓库,可通过Web界面进行访问公开的或者私人项目。

它拥有与Github类似的功能,能够浏览源代码,管理缺陷和注释。可以管理团队对仓库的访问,它非常易于浏览提交过的版本并提供一个文件历史库。团队成员可以利用内置的简单聊天程序(Wall)进行交流。它还提供一个代码片段收集功能可以轻松实现代码复用,便于日后有需要的时候进行查找。

开源项目地址:https://github.com/gitlabhq/gitlabhq

# Distribution      : CentOS 6.5 Minimal
# GitLab version    : 7.4.5
# Web Server        : Nginx
# Init system       : sysvinit
# Database          : MySQL
# Additional Notes  : In order to get a proper Ruby setup we build it from source

一,安装源和依赖包

cd /usr/local/src
#增epel源,如果你是i686系统,请把x86_64修改下。
wget -O /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 https://www.fedoraproject.org/static/0608B895.txt
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
rpm -Uvh 

#确认是否安装成功
rpm -qa gpg*
gpg-pubkey-0608b895-4bd22942

#增puias源
wget -O /etc/yum.repos.d/PUIAS_6_computational.repo https://gitlab.com/gitlab-org/gitlab-recipes/raw/master/install/centos/PUIAS_6_computational.repo
wget -O /etc/pki/rpm-gpg/RPM-GPG-KEY-puias http://springdale.math.ias.edu/data/puias/6/x86_64/os/RPM-GPG-KEY-puias
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-puias

#验证是否成功
rpm -qa gpg*
gpg-pubkey-41a40948-4ce19266

#查看仓库源

yum repolist
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
 * PUIAS_6_computational: www.puias.princeton.edu
 * epel: ftp.sjtu.edu.cn
仓库标识                                                                  仓库名称                                                                                           状态
PUIAS_6_computational                                                     PUIAS computational Base 6 - x86_64                                                                 2,638
base                                                                      CentOS-6 - Base - 163.com                                                                           6,518
*epel                                                                     Extra Packages for Enterprise Linux 6 - x86_64                                                     11,148
extras                                                                    CentOS-6 - Extras - 163.com                                                                            36
updates                                                                   CentOS-6 - Updates - 163.com                                                                          727
repolist: 21,067

#如果此列表中没有epel和PUIAS_6_computational,请执行以下命令

yum-config-manager --enable epel --enable PUIAS_6_computational


本文出自 “charlie_cen” 博客,请务必保留此出处http://charlie928.blog.51cto.com/3741218/1613257

CentOS6.5安装gitlab

标签:gitlab gitlab-shell ruby mysql gem

原文地址:http://charlie928.blog.51cto.com/3741218/1613257

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!