先根据官方文档https://about.gitlab.com/downloads/
环境是centos6.4
curl -O https://downloads-packages.s3.amazonaws.com/centos-6.6/gitlab-7.6.2_omnibus.5.3.0.ci-1.el6.x86_64.rpm sudo yum install openssh-server sudo yum install postfix sudo yum install cronie sudo service postfix start sudo chkconfig postfix on sudo rpm -i gitlab-7.6.2_omnibus.5.3.0.ci-1.el6.x86_64.rpm
https://downloads-packages.s3.amazonaws.com/centos-6.6/gitlab-7.6.2_omnibus.5.3.0.ci-1.el6.x86_64.rpm 被墙了,得翻墙去下,或者去其他源找。
sudo gitlab-ctl reconfigure sudo lokkit -s http -s ssh命令输完基本就可以了,里面自带的postgresql数据库
浏览器登录:
Username: root
Password: 5iveL!fe
再说就是配置https 的问题,要自己生成crt和key。
再说一下安装的配置是在/etc/gitlab/gitlab.rb
运行的环境是在/opt/gitlab下面
项目的各个模块的具体配置和日志是在/var/opt/gitlab下面,包括日志和配置都可以在里面具体看到。但是配置总的文件还是在/etc/gitlab/gitlab.rb,我的理解是通过/etc/gitlab/gitlab.rb下面的配置来控制/var/opt/gitlab下面的配置。
再就是配置https的时候,可以在/var/opt/gitlab/nginx/logs下面查看log 是什么原因。我试了好久不行,然后把etc/gitlab/gitlab.rb里面的ci_external_url "https://ci.example.com"注释掉,把他的配置文件/var/opt/gitlab/nginx/conf/gitlab-ci-http.conf也删掉终于可以了。
#gitlab-ctl reconfigure 命令会执行chef将/etc/gitlab/gitlab.rb添加的参数加入 /var/opt/gitlab/gitlab-rails/etc/gitlab.yml
参考文档: 安装:https://about.gitlab.com/downloads/
ldap配置:http://doc.gitlab.com/ce/integration/ldap.html
参考http://www.w-cun.com/post/gitl_27368.htmyum安装配置ldap:https://www.howtoforge.com/linux_openldap_setup_server_client