centos7 gitlab-ee搭建、安装、迁移超详细

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

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

sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix

二、安装Gitlab-ee

yum安装
yum install -y gitlab-ee
sudo EXTERNAL_URL="https://gitlab.example.com" 
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
源码安装
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ee/yum/el7/gitlab-ee-13.1.4-ee.0.el7.x86_64.rpm
rpm -ivh gitlab-ee-13.1.4-ee.0.el7.x86_64.rpm
vi /etc/gitlab/gitlab.rb
EXTERNAL_URL="https://gitlab.example.com" 
gitlab-ctl reconfigure
gitlab-ctl restart

 

三、Gitlab的备

你可能感兴趣的:(gitlab,centos)