Gitlab 很好的替代Github,可以安装到公司的内网服务器 进行管理 ,可以分布式的管理,集中的管理
下面介绍安装这个软件的步骤
其实安装很简单的 按照官网可以安装
https://about.gitlab.com/downloads/#centos6
软件安装
系统环境
[root@hzbj-gitlab- ~]# cat /etc/redhat-release CentOS release 6.8 (Final) [root@hzbj-gitlab- ~]# uname -a Linux hzbj-gitlab- -.el6.x86_64 # SMP Tue May :: UTC x86_64 x86_64 x86_64 GNU/Linux [root@hzbj-gitlab- ~]# uname -n hzbj-gitlab-
安装相应的依赖包
# yum install curl openssh-server openssh-clients postfix cronie #service postfix start #chkconfig postfix on #lokkit -s http -s ssh
postfix:可以发送邮件
添加gitlab服务安装包
#curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash #yum install gitlab-ce
rpm安装gitlab
# curl -O https://downloads-packages.s3.amazonaws.com/centos-6.6/gitlab-7.7.2_omnibus.5.4.2.ci-1.el6.x86_64.rpm
#rpm -i gitlab-7.7.2_omnibus.5.4.2.ci-1.el6.x86_64.rpm
启动服务
#gitlab-ctl reconfigure