信任 GitLab 的 GPG 公钥:
curl https://packages.gitlab.com/gpg.key 2> /dev/null | sudo apt-key add - &>/dev/null
添加gitlab-ce.list
vi /etc/apt/sources.list.d/gitlab-ce.list
deb https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/ubuntu xenial main
安装gitlab
sudo apt-get update
sudo apt-get install gitlab-ce
root@ganl-ubuntu:/home/ganl# dpkg -l|grep gitlab
ii gitlab-ce 8.10.7-ce.0 amd64 GitLab Community Edition and GitLab CI (including NGINX, Postgres, Redis)
root@ganl-ubuntu:/home/ganl#
配置gitlab
gitlab-ctl reconfigure
访问gitlab,要求修改密码:
可以使用了
邮箱设置:Ubuntu12.04安装gitlab社区版(Install a GitLab CE Omnibus package on ubuntu12.04)