安装gitlab
-----------
1. 下载 gitlab
curl -O https://downloads-packages.s3.amazonaws.com/centos-6.5/gitlab-7.2.1_omnibus-1.el6.x86_64.rpm
2. 安装依赖
yum install openssh-server
yum install postfix
service postfix start
chkconfig postfix on
3. 安装gitlab
rpm -i gitlab-7.2.1_omnibus-1.el6.x86_64.rpm
4. 修改对外开放域名
cat /etc/gitlab/gitlab.rb
external_url 'http://gitlab.lishen88.com'
5. 初始化gitlab
gitlab-ctl reconfigure
lokkit -s http -s ssh
6. 通过浏览器登录,初始化账号密码:root 5iveL!fe
7. 启动和停止
gitlab-ctl stop
gitlab-ctl start
注:GitLab 默认存放目录到 /var/opt/gitlab