CentOS 6.5 yum 安装gitlab

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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值