首页 > 其他 > 详细

gitlab 安装

时间:2018-08-06 14:07:26      阅读:177      评论:0      收藏:0      [点我收藏+]

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 安装

原文:https://www.cnblogs.com/yun965861480/p/9416079.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!