CentOS 6.5 安装Gitlab 7.12.2

本文档详细介绍了如何在CentOS 6.5上安装GitLab 7.12.2,包括添加EPEL和PUIAS源、安装依赖、配置MySQL和Redis、创建用户、安装GitLab、配置Web服务器Nginx,以及后期的升级和备份维护等步骤。

官网环境要求

参见:https://github.com/gitlabhq/gitlabhq

GitLab is a Ruby on Rails application that runs on the following software:

  • Ubuntu/Debian/CentOS/RHEL
  • Ruby (MRI) 2.1
  • Git 1.7.10+
  • Redis 2.0+
  • MySQL or PostgreSQL

For more information please see thearchitecture documentation.

##########################################

关闭防火墙,关闭SELinux

一、安装采用环境

  • CentOS 6.5 x86_64
  • Ruby 2.1.7
  • Git 2.4.8
  • Redis 2.4.10
  • MySQL 5.6.26
  • GitLab 7.12.2
  • GitLab Shell 2.6.2
  • Nginx   1.8.0
  • Gem   2.2.5
  • Bundler 1.10.6

二、系统添加EPEL、PUIAS源

1.添加EPEL源

wget -O /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 https://www.fedoraproject.org/static/0608B895.txt --no-check-certificate
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -qa gpg*
#显示gpg-pubkey-41a40948-4ce19266

2.添加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 --no-check-certificate
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

3.查看源列表,验证

输入如下命令:

yum repolist

结果如下:

repo id                                                               repo name                                                                                                   status
PUIAS_6_computational                                                 PUIAS computational Base 6 - x86_64                                                                          2,678
base                                                                  CentOS-6 - Base                                                                                              6,575
epel                                                                  Extra Packages for Enterprise Linux 6 - x86_64                                                              11,775
extras                                                                CentOS-6 - Extras                                                                                               3510
updates                                                               CentOS-6 - Updates                                                                                             254
repolist: 21,327
If you can't see them listed, use the folowing command (fromyum-utils package) to enable them:

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

三、Install the required tools for GitLab

1.利用yum安装依赖包

yum -y update
yum -y groupinstall 'Development Tools'
yum -y install vim-enhanced readline readline-devel ncurses-devel gdbm-devel glibc-devel tcl-devel openssl-devel curl-devel expat-devel db4-devel byacc sqlite-devel libyaml libyaml-devel libffi libffi-devel libxml2 libxml2-devel libxslt libxslt-devel libicu libicu-devel system-config-firewall-tui redis sudo wget crontabs python-devel logwatch logrotate perl-Time-HiRes libcom_err-devel.x86_64

 2.源码安装Git

参见:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值