Ubuntu搭建GitLab

環境:Ubuntu 16.04

參考文檔: https://about.gitlab.com/downloads/#ubuntu1604

1, 安裝ssh服務程序,有的話就不用裝了

sudo apt-get install curl openssh-server ca-certificates postfix

2, 下載gitLab包, 並安裝

curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
sudo apt-get install gitlab-ce

3, 下載gitlab-ce ,並安裝

地址:https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/xenial/gitlab-ce_8.11.7-ce.0_amd64.deb,點擊download

dpkg -i gitlab-ce_8.11.7-ce.0_amd64.deb 

4, 啓動, 如果失敗(http://localhost報錯),重啓後再執行

sudo gitlab-ctl reconfigure

訪問http://localhost  , 初始用戶爲root ,設置初始密碼。 即可登錄

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章