1. Yum换源
(1) 备份源文件
mv /etc/yum.repos.d/CentOS-base.repo /etc/yum.repos.d/CentOS-base.repo-backup
(2) 编辑文件
vi /etc/yum.repos.d/CentOS-base.repo
(3) 换源(搜狐)
[base] name=CentOS-6 failovermethod=priority baseurl=http://mirrors.sohu.com/centos/6.10/os/x86_64/ gpgcheck=0
(4) 更新nss
yum -y update nss
2. Gitlab安装
(1)第一步:在系统防火墙上开启允许ssh和http访问
yum install -y curl policycoreutils-python openssh-server cronie
lokkit -s http -s ssh
(2)第二步:安装postfix来支持gitlab发送邮件
yum install -y postfix
service postfix start
chkconfig postfix on
(3)第三步:安装gitlab
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
EXTERNAL_URL="http://192.168.50.117" yum -y install gitlab-ee



