Git系列(6-收尾) ----Centos7 安装 Gitlab

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

 2.安装邮件服务器

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

3.安装仓库

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

4.安装gitlab包

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

5.页面访问测试

 

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

你可能感兴趣的:(Git)