栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

Ubuntu上创建gitlab服务器

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Ubuntu上创建gitlab服务器

sudo apt install ca-certificates curl openssh-server postfix
mkdir tmp
cd tmp/
curl -LO https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh
bash script.deb.sh
sudo apt install gitlab-ce  #比较慢,耐心等待,后面会突然变快

然后,打开vim /etc/gitlab/gitlab.rb文件,将external_url = 'http://git.example.com'修改成自己的 IP 或者 HostName,比如:

external_url = 'http://172.17.172.89'

sudo apt-get install postfix

sudo gitlab-ctl reconfigure

gitlab-rails console -e production

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/974011.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号