1.

  1. sudo yum install -y curl policycoreutils-python openssh-server perl
  2. # Enable OpenSSH server daemon if not enabled: sudo systemctl status sshd
  3. sudo systemctl enable sshd
  4. sudo systemctl start sshd
  5. # Check if opening the firewall is needed with: sudo systemctl status firewalld
  6. sudo firewall-cmd --permanent --add-service=http
  7. sudo firewall-cmd --permanent --add-service=https
  8. sudo systemctl reload firewalld

2.

  1. sudo yum install postfix
  2. sudo systemctl enable postfix
  3. sudo systemctl start postfix

3.

  1. curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash

4.

  1. EXTERNAL_URL="自己的主机 + 端口" yum install -y gitlab-ee

5.

/etc/gitlab/initial_root_password 下获取初始密码,这个密码 24 小时有效。所以,在安装完成后使用 root 账号和这个密码登录,进行密码修改。

常用命令

  1. gitlab-ctl start # 启动 gitlab