用以下步骤安装就可以啦:

  1. sudo yum install -y curl policycoreutils-python openssh-server
  2. sudo systemctl enable sshd
  3. sudo systemctl start sshd
  4. sudo yum install firewalld systemd -y
  5. sudo systemctl start firewalld
  6. sudo systemctl enable firewalld
  7. sudo firewall-cmd --permanent --add-service=http
  8. sudo systemctl reload firewalld
  9. sudo yum -y install wget
  10. sudo yum install vim -y
  11. sudo yum install postfix
  12. sudo systemctl enable postfix
  13. wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.7.3-ce.0.el7.x86_64.rpm
  14. rpm -i gitlab-ce-10.7.3-ce.0.el7.x86_64.rpm
  15. vim /etc/gitlab/gitlab.rb #这里把external_url改成localhost或者域名,像这样子: external_url 'http://localhost'
  16. gitlab-ctl reconfigure
  17. gitlab-ctl restart

然后打开你的

分类: web

标签:   git   gitlab