Centos7部署gitlab

建议服务器配置不低于2C8G

1、安装必要的依赖

bash 复制代码
sudo yum install -y curl policycoreutils-python openssh-server perl

2、配置极狐GitLab 软件源镜像

bash 复制代码
curl -fsSL https://packages.gitlab.cn/repository/raw/scripts/setup.sh | /bin/bash
sudo yum install gitlab-jh -y

3、完成GitLab的安装后,需要按照自己的需求进行配置

bash 复制代码
vim /etc/gitlab/gitlab.rb

更改 https://gitlab.example.com 为您要访问极狐GitLab 实例的 URL

更改配置选项之后,需要重新加载配置文件

bash 复制代码
gitlab-ctl reconfigure

启动命令

bash 复制代码
gitlab-ctl start

4、访问极狐GitLab 实例并登录

除非您在安装过程中指定了自定义密码,否则将随机生成一个密码并存储在 /etc/gitlab/initial_root_password 文件中(出于安全原因,24 小时后,此文件会被第一次 gitlab-ctl reconfigure 自动删除,因此若使用随机密码登录,建议安装成功初始登录成功之后,立即修改初始密码)。使用此密码和用户名 root 登录

相关推荐
Lyra_Infra7 小时前
故障排查报告:GitLab 18.11.3 后台 Settings 500
gitlab
Mike_6662 天前
git@gitlab-rdc.xxxxx.com: Permission denied (publickey).fatal: 无法读取远程仓库。
git·elasticsearch·gitlab
雨声不在4 天前
gitlab ci Runner 配置
gitlab·cicd
曾庆睿6 天前
【基于 RHEL 9.3 的 K8s + GitLab 全自动化部署环境搭建第一篇】
kubernetes·自动化·gitlab
曾庆睿6 天前
【基于 RHEL 9.3 的 K8s + GitLab 全自动化部署环境搭建第二篇】
kubernetes·自动化·gitlab
xmlhcxr10 天前
从 0 到 1 落地企业级 DevOps CI/CD 流水线:基于 GitLab+Jenkins+Harbor 的完整实践
运维·docker·gitlab·jenkins·harbor·devops
高旭的旭11 天前
GitLab Omnibus Docker 内存优化实战:从 4.7 GiB 降到 3.2 GiB
docker·容器·gitlab
牛奶咖啡1314 天前
Git实践——GitLab服务器的部署与使用
gitlab·gitlab是什么·gitlab有啥用·gitlab适用场景·gitlab的版本如何选·安装部署gitlab·gitlab的使用
lisanmengmeng15 天前
Gitlab搭建
gitlab