centOS7 安装配置gitlab

309 阅读1分钟

安装准备

  1. 泡一杯茶。
  2. 在gitlab官网找到centOS 7 安装步骤, 文章地址
  3. 按照文章中一步步执行。
  4. 安装依赖
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 systemctl reload firewalld
  1. 在安装一些依赖
sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix

  1. 顺手也把这个命令给敲进去
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
  1. 配置虚拟域名(到这一步我一直陪不好,废人只能写IP)
sudo EXTERNAL_URL="192.168.1.XXX" yum install -y gitlab-ee

  1. 启动gitlab
sudo gitlab-ctl reconfigure
gitlab-ctl restart
  1. 现在就输入192.168.1.xxx就可以体验丝般顺滑的gitlab