1.
sudo yum install -y curl policycoreutils-python openssh-server perl# Enable OpenSSH server daemon if not enabled: sudo systemctl status sshdsudo systemctl enable sshdsudo systemctl start sshd# Check if opening the firewall is needed with: sudo systemctl status firewalldsudo firewall-cmd --permanent --add-service=httpsudo firewall-cmd --permanent --add-service=httpssudo systemctl reload firewalld
2.
sudo yum install postfixsudo systemctl enable postfixsudo systemctl start postfix
3.
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
4.
EXTERNAL_URL="自己的主机 + 端口" yum install -y gitlab-ee
5.
去 /etc/gitlab/initial_root_password 下获取初始密码,这个密码 24 小时有效。所以,在安装完成后使用 root 账号和这个密码登录,进行密码修改。
常用命令
gitlab-ctl start # 启动 gitlab
