downmovies 发表于 2018-1-11 08:49:47

Gitlab安装操作说明书

  一、Gitlab安装操作步骤

[*]登录官方网站https://about.gitlab.com/downloads/根据你所需要的系统版本,作者使用的是centos6,
[*]检查您的服务器是否符合硬件要求。gitlab包是专为64位系统。32位操作系统,考虑不同的安装方法。
[*]安装和配置必要的依赖关系
  # sudo yum install curl openssh-server openssh-clients postfix cronie
  # sudo service postfix start
  # sudo chkconfig postfix on
  # sudo lokkit –s http –s ssh

[*]添加gitlab包服务器安装包
  # curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
  # sudo yum install gitlab-ce

[*]遇到yum错误:Cannot retrieve repository metadata(repomd.xml) for repository怎么办
  # yum clean all,之后
  新建 /etc/yum.repos.d/gitlab-ce.repo,内容为

name=gitlab-ce
baseurl=http://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6
repo_gpgcheck=0
gpgcheck=0
enabled=1
gpgkey=https://packages.gitlab.com/gpg.key
  在执行
  # sudo yum
  # sudo yum install gitlab-ce

[*]配置并启动gitlab
  sudo gitlab-ctl reconfigure

[*]浏览到主机名和登录
  在您的第一次打开浏览器输入你的服务器IP地址192.168.0.200访问中,您将被重定向到一个密码重置屏幕,以提供初始管理员帐户的密码。输入您所需的密码,您将被重定向回登录屏幕。
  默认帐户的用户名是”root”。提供您创建的密码和登录的密码。登录后,您可以更改用户名。
页: [1]
查看完整版本: Gitlab安装操作说明书