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 登录

相关推荐
极小狐2 天前
从 GitLab Flow 到 Pipeline:分支策略 + CI/CD + 运维一文打通
ci/cd·gitlab·devops·极狐gitlab
猫头虎3 天前
GitHub 入门教程:如何加入并为开源项目贡献代码
gitee·开源·gitlab·github·开放原子·开源协议·gitcode
悠然南风5 天前
【云原生学习】Prometheus监控、GitLab与Jenkins部署实战
kubernetes·gitlab
极小狐6 天前
极狐GitLab Runner 自托管安全加固指南
安全·ci/cd·gitlab·devops·runner·安全加固
钝挫力PROGRAMER7 天前
Windows Docker 环境搭建 GitLab CI/CD 流水线
windows·docker·gitlab·gitlab-runner
我一定会有钱13 天前
打造完美工作流:Git 配置”一次推送,三端同步”(Gitee/GitCode/GitHub)
开发语言·windows·vscode·搜索引擎·gitlab·github·visual studio code
LXY_BUAA13 天前
Git_在飞牛中部署 GitLab_20260817
git·gitlab
Jeanyia16 天前
GitLab 配套 Git 常用命令
git·gitlab
极小狐16 天前
极狐GitLab 补丁版本:19.2.1、19.1.3、19.0.5
网络·安全·gitlab·极狐gitlab·安全更新·补丁版本