CentOS6.6安装Gitlab全过程
安装环境
CentOS6.6
安装过程
安装中文官网给出的过程执行,http://www.gitlab.cc/downloads/
sudo yum install curl openssh-server postfix cronie
sudo service postfix start
sudo chkconfig postfix on
sudo lokkit -s http -s ssh
注意,以下是关键,使用清华大学的镜像.
新建/etc/yum.repos.d/gitlab-ce.repo
,内容为
[gitlab-ce]
name=gitlab-ce
baseurl=http://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6
repo_gpgcheck=0
gpgcheck=0
enabled=1
gpgkey=https://packages.gitlab.com/gpg.key
参考地址:http://mirror.tuna.tsinghua.edu.cn/help/#gitlab-ce
配置与启动
sudo gitlab-ctl reconfigure
通过浏览器访问GitLab,下面是默认的账号和密码
Username: root Password: 5iveL!fe