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

修改为中文界面

修改默认密码

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

相关推荐
不念霉运1 天前
2025 Gitee vs. GitLab:全面对比与选择指南
gitee·gitlab
水瓶_bxt1 天前
创建 GitLab Runner 使用CICD自动化部署容器
eureka·自动化·gitlab
黑心的奥利奥3 天前
Docker配置Gitlab-runner实现自动化容器化部署前端项目
docker·自动化·gitlab
wuzuyu3653 天前
在腾讯云上安装gitlab
云计算·gitlab·腾讯云
xiaodaiwang3 天前
OpenEuler 22.03 系统上安装配置gitlab runner
gitlab
TimberWill4 天前
gitlab私服搭建
gitlab
中东大鹅4 天前
访问 gitlab 跳转 0.0.0.0
gitlab
guygg884 天前
配置本地git到gitlab并推送
git·gitlab
大A崛起5 天前
Gitlab-CI实现组件自动推送
ci/cd·gitlab·github
越来越无动于衷5 天前
GitLab 社区版 10.8.4 安装、汉化与使用教程
gitlab