Centos 安装 Gitlab

安装GitLab官方文档

https://about.gitlab.com/install/#centos-7

1、安装和配置必要的依赖项

开启防火墙

sudo yum install -y curl policycoreutils-python openssh-server
sudo systemctl enable sshd
sudo systemctl start sshd
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo systemctl reload firewalld

安装Postfix发送邮件,如果不使用Postfix,可以忽略这一步

2、添加GitLab软件包存储库并安装软件包

添加包存储库:

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

安装GitLab,如果不使用域名,那就配上IP地址,因为找回密码时发送的邮件会使用这个地址回调,免得安装之后还需要再改。

sudo EXTERNAL_URL = "https://gitlab.example.com" yum install -y gitlab-ee

3、访问

第一次访问GitLab的时候,会重定向到重置密码页,此时就可以为超管账号root重置密码了。

原文地址:https://www.cnblogs.com/swyy/p/14069642.html