gitlab 安装
Posted yun965861480
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了gitlab 安装相关的知识,希望对你有一定的参考价值。
1.配置yum源
vim /etc/yum.repos.d/gitlab-ce.repo
[gitlab-ce] name=Gitlab CE Repository baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/ gpgcheck=0 enabled=1
2.更新本地yum 缓存
yum makecache
3.安装gitlab
yum install gitlab-ce
4.启动 gitlab
gitlab gitlab-ctl reconfigure
5.访问
http://192.168.64.128
6.常用命令
gitlab-ctl start # 启动所有 gitlab 组件; gitlab-ctl stop # 停止所有 gitlab 组件; gitlab-ctl restart # 重启所有 gitlab 组件; gitlab-ctl status # 查看服务状态; gitlab-ctl reconfigure # 启动服务; vi /etc/gitlab/gitlab.rb # 修改默认的配置文件; gitlab-rake gitlab:check SANITIZE=true --trace # 检查gitlab; gitlab-ctl tail # 查看日志;
以上是关于gitlab 安装的主要内容,如果未能解决你的问题,请参考以下文章