美文网首页
Gitlab安装

Gitlab安装

作者: 闽越布衣 | 来源:发表于2019-07-26 08:11 被阅读0次

安装

配置yum源

vim /etc/yum.repos.d/gitlab-ce.repo

复制以下内容:

[gitlab-ce]

name=Gitlab CE Repository

baseurl=[<u>https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/elreleasever/</u>](https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/elreleasever/)

gpgcheck=0

enabled=1

更新本地yum缓存

yum makecache

安装GitLab

yum install gitlab-ce #自动安装最新版

配置

    安装后修改配置文件vi /etc/gitlab/gitlab.rb,将external_url 'http://gitlab.example.com'改成需要的域名,然后执行gitlab-ctl reconfigure 启动服务,启动后gitlab-ctl start启动所有组件

访问方式

    绑定ip gitlab.example.com;浏览器访问:gitlab.example.com;默认账户密码:root 5iveL!fe

相关文章

网友评论

      本文标题:Gitlab安装

      本文链接:https://www.haomeiwen.com/subject/wdyofqtx.html