虚拟机ubuntu安装gitlab

环境   ubuntu 17

安装步骤 

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

2  sudo apt-get install gitlab-ee(网速大部分很慢,运气好达到200k)

         报错Unable to locate package gitlab-ce

解决方法

a) 修改 /etc/apt/sources.list.d/gitlab_gitlab-ce.list

原来
deb https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ zesty main
deb-src https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ zesty main
改成
deb https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ xenial main
deb-src https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ xenial main

        b)  sudo apt-get update

        c)  sudo apt-get install gitlab-ee

3  vim /etc/gitlab/gitlab.rb   修改external_url   'http://localhost:90'(ip,参照本人虚拟机桥接设置博文设置,保证虚拟机访问外网和局域网其他机器访问虚拟机)

4  sudo gitlab-ctl reconfigure

5  gitlab-ctl restart 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值