ubuntu install gitlab
2016-06-27 本文已影响129人
小众臻品
- gitlab是什么?
GitLab includes Git repository management, code reviews, issue tracking, wikis, and more, plus GitLab CI, an easy-to-use continuous integration and deployment tool.
gitlab我们主要用来代码托管、code review。
- ubuntu如何安装gitlab
- Install and configure the necessary dependencies
sudo apt-get install curl openssh-server ca-certificates postfix
- Add the GitLab package server and install the package
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
sudo apt-get install gitlab-ce
如果这一步无法完成,则去
https://packages.gitlab.com/gitlab/gitlab-ce
找到相应版本的安装包下载
curl -LJO https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/trusty/gitlab-ce-XXX.deb/download
dpkg -i gitlab-ce-XXX.deb
- Configure and start GitLab
sudo gitlab-ctl reconfigure
- Browse to the hostname and login
初始化密码