centos 6.4 gitlab7.6.2安装

先根据官方文档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.htm
yum安装配置ldap:https://www.howtoforge.com/linux_openldap_setup_server_client


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值