1. 安装依赖
yum install curl-devel expat-devel gettext-devel openssl-devel perl-devel zlib-devel gcc gcc-c++ -y
2. 单独安装 docbook2X 依赖
wget http://mirrors.opencas.cn/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh epel-release-6-8.noarch.rpm
yum install asciidoc xmlto docbook2X -y
ln -s /usr/bin/db2x_docbook2texi /usr/bin/docbook2x-texi
3. 下载,安装GIT
https://github.com/git/git/releases
tar -zxf git-2.x.y.tar.gz
cd git-2.x.y
make configure
./configure --prefix=/usr/local/git
make all doc info
make install install-doc install-html install-info
4、GITLAB 安装 (参考https://about.gitlab.com/downloads/#centos6)
yum install curl openssh-server postfix cronie -y
service postfix start
chkconfig postfix on
lokkit -s http -s ssh
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | bash
[网络问题,配置失败 可以多试几次上面的命令]
yum install gitlab-ce
gitlab-ctl reconfigure
初始用户名密码
Username: root
Password: 5iveL!fe
邮件转发【注册需要邮件激活,才能使用】
参考https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/smtp.md
#配置
gitlab-ctl reconfigure
#启动
gitlab-ctl start
#停止
gitlab-ctl stop
#重启
gitlab-ctl restart