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

修改为中文界面

修改默认密码

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

相关推荐
Jeanyia1 天前
GitLab 配套 Git 常用命令
git·gitlab
极小狐1 天前
极狐GitLab 补丁版本:19.2.1、19.1.3、19.0.5
网络·安全·gitlab·极狐gitlab·安全更新·补丁版本
rustfs2 天前
GitLab 如何与 RustFS 集成?
分布式·rust·gitlab
郝亚军4 天前
gitlab常用命令
gitlab
xixingzhe27 天前
Java 使用 GitLab4J 实现 WebHook
gitlab
童槿顏丶9 天前
GitLab部署到Linux
linux·运维·gitlab
InfinitePlus9 天前
Gitlab docker版本安装
docker·容器·gitlab
进击切图仔9 天前
GitLab 新用户创建与项目授权操作指南
gitlab
技术小结-李爽10 天前
【工具】git与gitee和gitlab和github等等有什么区别?
git·gitee·gitlab
xiaoxiangsiyan11 天前
GitLab CI/CD 自托管(EE 企业版)+ Kubernetes Runner 集群 + ArgoCD(GitOps 部署)
运维·网络·ci/cd·容器·kubernetes·gitlab·argocd