安装
配置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/)
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
网友评论