Centos 8 安装 gitlab13

1、环境和安装包准备

  系统:CentOS-8.2.2004-x86_64-minimal.iso ,安装的是最小化标准版 且 /etc/selinux/config 配置已禁用
  下载 gitlab:wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el8/gitlab-ce-13.3.0-ce.1.el8.x86_64.rpm
  当前用户:root

2、先安装依赖,设置邮件服务自启动,再安装gitlab

  yum install policycoreutils-python-utils postfix

  systemctl enable postfix

  systemctl start postfix

  rpm -ivh gitlab-ce-13.3.0-ce.1.el8.x86_64.rpm

3、配置gitlab13

  编辑 /etc/gitlab/gitlab.rb 找到 external_url 'http://xxxxxxxx' 改成自己的地址 external_url 'http://192.168.3.9:8989'

  添加防火墙端口

  firewall-cmd --add-port=8989/tcp --permanent

  firewall-cmd --reload

  重新读取配置,重启服务

  gitlab-ctl reconfigure

  gitlab-ctl restart

原文地址:https://www.cnblogs.com/dawnlz/p/13549734.html