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 ,设置初始密码。 即可登录

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