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

修改为中文界面

修改默认密码

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

相关推荐
不倒翁玩偶5 小时前
Gitlab拉取代码token换成账号密码登录
gitlab
xixingzhe26 小时前
ubuntu安装gitlab
linux·ubuntu·gitlab
切糕师学AI1 天前
GitLab 是什么?
gitlab
明月心9523 天前
git remote add 用法
gitlab
only_Klein3 天前
jenkins流水线报错:Connection reset by peer
ci/cd·kubernetes·gitlab·jenkins·ssl
梁萌4 天前
docker部署gitlab和gitlab runner
docker·eureka·gitlab
johnnyAndCode4 天前
Idea 设置GitLab时使用账密,而不是token的配置方法
gitlab·idea
天外飞雨4 天前
Gitlab使用
gitlab
BUTCHER55 天前
GitLab SSH 密钥配置
运维·ssh·gitlab
明月心9525 天前
GitLab使用
gitlab