Gitlab安装

本文档详述了如何在Linux系统上安装GitLab社区版,包括配置YUM源、安装指定版本、修改配置文件、设置外部URL、仓库路径以及权限管理。还介绍了GitLab的组件、权限级别和日常管理命令。
摘要由CSDN通过智能技术生成

远程仓库
Gitlab一个基于GIT的源码托管解决方案
基于Ruby on rails开发
继承了nginx postgreSQL redis sidekiq等组件

工作流程
在这里插入图片描述
Gitlab安装
注:生成环境中gitlab必须要做时间同步
官网RPM下载地址
https://packages.gitlab.com/gitlab/gitlab-ce

配置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/el$releasever/
gpgcheck=0
enabled=1

安装GitLab社区版
yum -y install gitlab-ce #自动安装最新版
yum -y install gitlab-ce-x.x.x #安装指定版本

实验安装
[root@tom01 adminset]# yum install gitlab-ce-8.9.10

修改配置文件
[root@tom01 adminset]# vim /etc/gitlab/gitlab.rb
external_url ‘http://192.168.56.7’
注:生产环境中应该配置对外的域名

指定web端口
external_url ‘http://192.168.56.7:8000’
指定仓库存储位置
创建/data/gitlab目录
在git_data_dir下面添加一句git_data_dir “/data/gitlab”
重新加载后,会发现在/data/gitlab目录下多出一个repositories目录
修改完成后必须执行(自动化配置)
[root@tom01 adminset]# gitlab-ctl reconfigure

完成后浏览器访问
192.168.56.7
在这里插入图片描述
常用该命令
gitlab-ctl status 查看组件状态
[root@tom01 adminset]# gitlab-ctl status
run: gitlab-workhorse: (pid 7653) 880s; run: log: (pid 7431) 982s
run: logrotate: (pid 7450) 975s; run: log: (pid 7449) 975s
run: nginx: (pid 7986) 647s; run: log: (pid 7437) 981s
run: postgresql: (pid 7306) 1021s; run: log:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值