官方文档:https://about.gitlab.com/install/#centos-8?version=ce
    sudo dnf install -y curl policycoreutils openssh-server
    centos 8 没有policycoreutils没有关系
    sudo systemctl enable sshd
    sudo systemctl start sshd
    systemctl start firewalld
    sudo firewall-cmd —permanent —add-service=http
    sudo firewall-cmd —permanent —add-service=https
    sudo systemctl reload firewalld

    sudo dnf install postfix
    sudo systemctl enable postfix
    sudo systemctl start postfix

    安装ce
    curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
    配置基本
    sudo EXTERNAL_URL=”http://IP“ dnf install -y gitlab-ce
    请耐心等待,会出现 gitlab 的提示,之后就可以登录了
    安装完成可以登录了,首次登录会重定向至密码设置,默认账号是root

    image.png