• 安装前先检查一下是否已经安装
rpm -qa | grep gitlab
  • 已经安装就删除
rpm -e gitlab

开始安装

  • 通过yum安装默认是最新版本
sudo yum install -y curl policycoreutils-python openssh-serversudo systemctl enable sshdsudo systemctl start sshdsudo firewall-cmd --permanent --add-service=httpsudo systemctl reload firewalldsudo yum install postfixsudo systemctl enable postfixsudo systemctl start postfixcurl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/ .rpm.sh | sudo bash
sudo EXTERNAL_URL="https://gitlab.example.com" yum install -y gitlab-ee
  • 也可在安装后进入修改
vim /etc/gitlab/gitlab.rb

image

  • 重启配置
gitlab-ctl reconfigure//重启gitlabgitlab-ctl start或restart
  • 打开页面
    image
  • 如出现502以下操作大致可用解决
cd /var/lib/rpm//删除--db.01等等rm -rf __db.*rpm --rebuilddb
收藏 打印