gitlab安装

作者: 老驾新编 | 来源:发表于2018-05-08 18:41 被阅读0次

系统环境:CentOS7

一、安装并配置必要依赖关系

sudo yum install -y curl policycoreutils-python openssh-server

sudo systemctl enable sshd(有sshd的可以省略)

sudo systemctl start sshd(有sshd的可以省略)

sudo firewall-cmd --permanent --add-service=http(防火墙设置)

sudo systemctl reload firewalld(重启防火墙)

二、邮件服务配置

sudo yum install postfix

sudo systemctl enable postfix

sudo systemctl start postfix

三、添加giblab安装包并安装

curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash

sudo EXTERNAL_URL="gitlab.xxxx.com" yum install -y gitlab-ce

四、其他

修改配置文件 vim /etc/gitlab/gitlab.rb

重载 配置 gitlab-ctl reconfigure

启动 gitlab-ctl start

gitlab-ce 与 gitlab-ee的区别: GitLab提供了社区版(CE)与企业版(EE)。社区版可从网络免费下载并且是开源产品,它出自一个由几百人组成的社区。企业版提供订阅服务,并且更深层次地集成了LDAP/AD、Jira与Jenkins等

相关文章

网友评论

    本文标题:gitlab安装

    本文链接:https://www.haomeiwen.com/subject/ljfktttx.html