gitlab部署

1、安装流程

1.1 安装依赖包

bash 复制代码
yum update
yum install -y curl openssh-server ca-certificates tzdata perl
#以下安装邮件服务器可跳过
yum install -y postfix

1.2 清华园下载对应版本的包

Index of /gitlab-ce/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror

(官网地址: packages.gitlab.com )

bash 复制代码
yum -y install gitlab-ce-17.1.1-ce.0.el7.x86_64.rpm

1.3 修改配置文件

bash 复制代码
vim /etc/gitlab/gitlab.rb
external_url 'http://192.168.232.135:1000/'  #本地服务器ip
puma['worker_timeout'] = 30   #设置最大请求持续时间
gitlab_rails['time_zone'] = 'Asia/Shanghai'
puma['worker_processes'] = 2
postgresql['shared_buffers'] = "128MB"   #减少数据库缓存(默认为256MB 改为128MB)
postgresql['max_worker_processes'] = 3   #减少数据库并发数
puma['per_worker_max_memory_mb'] = 600   #更改内存限制设置
prometheus_monitoring['enable'] = false   #普罗米修斯监控关闭启用

查询加载配置文件 (等待几分钟即可)
gitlab-ctl reconfigure

重启gitlab
gitlab-ctl restart
查看gitlab状态
gitlab-ctl status

2、web配置流程

2.1 浏览器访问gitlab

http://192.168.232.135:1000/

root默认密码存放在/etc/gitlab/initial_root_password

修改为中文界面

修改默认密码

开启本地网络请求 (后续自动构建使用)

相关推荐
霸道流氓气质12 天前
GitLab CI/CD 完全指南
linux·ci/cd·gitlab
sbjdhjd12 天前
从零搭建企业级 CI/CD(下):Jenkins+GitLab+Harbor 全链路实战指南
git·servlet·ci/cd·云原生·云计算·gitlab·jenkins
用什么都重名13 天前
Git 合并两个无共同历史的分支:从报错到解决全记录
git·gitlab
master33613 天前
GitLab (Docker) 常用命令及解决方案清单
docker·容器·gitlab
qq_3564086613 天前
GitLab 单机私有化部署文档(基于 Docker 环境)
docker·gitlab
lisanmengmeng15 天前
gitlab 免密配置
linux·服务器·gitlab
求知若渴,虚心若愚。15 天前
Jenkins 自动化流水线(CICD)
运维·自动化·gitlab
mnasd17 天前
Gitlab + Jenkins 实现 CICD
运维·gitlab·jenkins
鹤鸣的日常17 天前
前端运行时动态环境变量方案
前端·react.js·docker·前端框架·vue·gitlab
starvapour18 天前
Ubuntu部署gitlab频繁出现502的问题
linux·ubuntu·gitlab