[root@test ~]# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
[root@test ~]# uname -r
3.10.0-327.el7.x86_64
1.1添加阿里云的镜像cd /etc/yum.repos.d#备份原镜像mv CentOS-Base.repo CentOS-Base.repo.backup
#添加阿里云Base源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
#添加阿里云epel源
wget https://mirrors.aliyun.com/repo/epel-7.repo#清除缓存
yum clean all && yum makecache
第2章 yum安装最新版Gitlab9.1.2
2.1安装依赖软件yum install curl policycoreutils openssh-serveropenssh-clients
2.2添加清华大学镜像vi /etc/yum.repos.d/gitlab-ce.repo
[gitlab-ce]
name=Gitlab CE Repository
baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever/
gpgcheck=0
enabled=1
2.3安装gitlab-ceyum makecache
yum install gitlab-ce
2.4查看安装gitlab的版本head -1 /opt/gitlab/version-manifest.txt
gitlab-ce 9.1.2
2.5重新配置并启动Gitlab# gitlab-ctl reconfigure会把一些过去的config还原,导致修改的端口以及域名等都没有了
gitlab-ctl reconfigure
#重启gitlab-ce
gitlab-ctl restart
第3章 安装mysql5.6.36
3.1添加mysql源vi /etc/yum.repo.d/mysql.repo
[mysql56-community]
name=MySQL 5.6 Community Server
baseurl=http://repo.mysql.com/yum/mysql-5.6-community/el/7/$basearch/
enabled=1
gpgcheck=0
3.2mysql配置yum -y install mysql-server mysql-devel
#基本配置,新建密码等
m