安装依赖
yum install -y curl openssh-server openssh-clients cronie lokkit
lokkit -s http -s ssh
安装postfix(centos6.5自带,但是我的不能用,后来用的stmp)
yum install postfix
service postfix start
chkconfig postfix on
添加Gitlab包仓库
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
配置源
RHEL/CentOS 用户
新建 /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
再执行
sudo yum makecache
sudo yum install gitlab-ce
安装Gitlab
yum install -y gitlab-ce
配置Gitlab和启动
gitlab-ctl reconfigure
gitlab-ctl start
访问gitlab
http://ip/
#默认是root和root密码即可登录