Gitlab安裝操作說明書

來源:互聯網
上載者:User

標籤:

一、Gitlab安裝操作步驟

  1. 登入官方網站https://about.gitlab.com/downloads/根據你所需要的系統版本,作者使用的是centos6,
  2. 檢查您的伺服器是否符合硬體要求。gitlab包是專為64位系統。32位作業系統,考慮不同的安裝方法。
  3. 安裝和配置必要的依賴關係

# sudo yum install curl openssh-server openssh-clients postfix cronie

# sudo service postfix start

# sudo chkconfig postfix on

# sudo lokkit –s http –s ssh

  1. 添加gitlab包伺服器安裝包

# curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash

# sudo yum install gitlab-ce

  1. 遇到yum錯誤:Cannot retrieve repository metadata(repomd.xml) for repository怎麼辦

# yum clean all,之後

建立 /etc/yum.repos.d/gitlab-ce.repo,內容為

[gitlab-ce]

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

  1. 配置並啟動gitlab

sudo gitlab-ctl reconfigure

  1. 瀏覽到主機名稱和登入

在您的第一次開啟瀏覽器輸入你的伺服器IP地址192.168.0.200訪問中,您將被重新導向到一個密碼重設螢幕,以提供初始系統管理員帳戶的密碼。輸入您所需的密碼,您將被重新導向回登入螢幕。

預設帳戶的使用者名稱是”root”。提供您建立的密碼和登入的密碼。登入後,您可以更改使用者名稱。

 

Gitlab安裝操作說明書

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.