GitLab Server 安裝

sudo apt-get update
sudo apt-get install -y curl openssh-server ca-certificates

下載Git server

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

// 手動下載
https://packages.gitlab.com/gitlab/gitlab-ce   // 下載 gitlab-ce_10.1.4-ce.0.amd64.deb
sudo dpkg -i /mnt/share/gitlab-ce_10.1.4-ce.0_amd64.deb   // 解壓縮

GitLab Server 配置

/ect/gitlab/gitlab.rb    // 設定檔

// 重新載入設定檔
sudo gitlab-ctl reconfigure

重啟伺服器

sudo gitlab-ctl start

查看gitLab狀態

sudo gitlab-ctl status