一键安装gitlab
2021-05-07 本文已影响0人
sknfie
概述
GitLab是一个利用Ruby on Rails开发的开源应用程序,实现一个自托管的Git项目仓库,可通过Web界面进行访问公开的或者私人项目。
1 .安装配置依赖项
yum install -y curl policycoreutils-python openssh-server perl
systemctl enable sshd
systemctl start sshd
firewall-cmd --permanent --add-service=http
firewall-cmd --permanent --add-service=https
systemctl reload firewalld
2 .安装一个邮件系统用来发送邮件
yum install postfix
systemctl enable postfix
systemctl start postfix
3 .添加GitLab仓库,并安装到服务器上
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
EXTERNAL_URL="http://www.gitx.com" yum install -y gitlab-ee