在ubuntu上搭建GitLab本地服务器

1. Install and configure the necessarydependencies

$sudo apt-get install curl openssh-serverca-certificates postfix

2. Add the GitLab package server andinstall the package

$curl -sShttps://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh| sudo bash

$sudo apt-get install gitlab-ce

$

3. 配置域名

$vim /etc/gitlab/gitlab.rb 

## Url on which GitLab will be reachable.

## For more details on configuringexternal_url see:

## https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/configu

ration.md#configuring-the-external-url-for-gitlab

#external_url 'http://ubuntu'  #将ubuntu换成自己的IP地址

#external_url 'http://当前电脑的IP地址'  #下面是我的IP地址

external_url 'http://192.168.220.131'

 

4.Configure and start GitLab

$sudo gitlab-ctl reconfigure

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值