centos-rhel服务器相关 / git / 未分类 · 2015年11月22日

gitlab 社区版安装配置==pass

os: centos6.X
第一 Install and configure the necessary dependencies
进入gitlab官方网站,选择对应的操作系统——CentOS 6 (and RedHat/Oracle/Scientific Linux 6),
https://about.gitlab.com/downloads/#centos6
按照官方的提示进行安装:
安装配置必要的依赖
在Centos 6 和 7 中,以下的命令将会打开HTTP和SSH在系统防火墙中的可访问权限。
sudo yum install curl openssh-server postfix cronie
sudo service postfix start
sudo chkconfig postfix on
sudo lokkit -s http -s ssh

第二 Add the GitLab package server and install the package
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
sudo yum install gitlab-ce

现在先下在vm5 上
因为被围墙,我直接下载回来了的
/home/evan/git
#直接下载 可先在us vm下载 随便选择个下载地址吧
https://packages.gitlab.com/gitlab/gitlab-ce?filter=rpms
wget --no-check-certificate https://packages.gitlab.com/gitlab/gitlab-ce/el/6/x86_64/gitlab-ce-8.0.2-ce.1.el6.x86_64.rpm
wget -c story.org/gitlab-ce-8.0.2-ce.1.el6.x86_64.rpm
rpm -ivh gitlab-ce-8.0.2-ce.1.el6.x86_64.rpm

配置并启动GitLab
打开/etc/gitlab/gitlab.rb,将external_url = ‘http://git.example.com’修改为自己的IP地址:http://xxx.xx.xxx.xx,,然后执行下面的命令,对GitLab进行编译。
sudo gitlab-ctl reconfigure
登录GitLab
Username: root
Password: 5iveL!fe
http://192.168.1.112/
另一个国内方法
Gitlab Community Edition 镜像使用帮助
http://mirror.tuna.tsinghua.edu.cn/help/#gitlab-cehttp://mirror.tuna.tsinghua.edu.cn/help/#gitlab-ce
GitLab 安装配置笔记
http://segmentfault.com/a/1190000002722631
https://about.gitlab.com/downloads/#centos6