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

相关推荐
_可乐无糖19 小时前
GitLab CI 脚本之 CI_COMMIT_AUTHOR
ci/cd·gitlab
_可乐无糖2 天前
GitLab CI 脚本之 dependencies 和 needs
ci/cd·gitlab
Fan_5583 天前
4核8G云服务器部署GitLab内存耗尽解决方案
gitlab
洋就在江州3 天前
gitlab-cicd 离线集成——springboot-cicd (非docker形式,shell形式)
java·spring boot·后端·ci/cd·gitlab·gitlab-runner
成为你的宁宁4 天前
【Ubuntu 18.04安装Gitlab】
ubuntu·gitlab
长春的KAKA4 天前
GitLab 项目页面报 500 错误的完整修复记录:PostgreSQL 数据库损坏、统计表缺失及数据库迁移
数据库·postgresql·gitlab
蓝胖的四次元口袋4 天前
GitLab知识梳理
gitlab
极小狐13 天前
CI 作业里 kubectl 连不上集群?用 Kubernetes Agent 打通部署链路的 7 个步骤
ci/cd·kubernetes·gitlab·devops·k8s部署
Zhou14113613 天前
Git_02_GitLab协作与CI_CD
git·ci/cd·gitlab
白帽攻防录13 天前
SRC 挖洞:GitLab GraphQL 指令绕过深度复盘,CVE-2026-19478 未授权删项目怎么打穿代码托管平台
网络·网络安全·gitlab·graphql