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

相关推荐
独隅5 小时前
Git/GitHub/GitLab/Gitee 核心对比指南
git·gitlab·github
开开心心就好6 小时前
清理重复文件释放C盘空间的工具
安全·智能手机·pdf·gitlab·音视频·intellij idea·1024程序员节
李少兄7 小时前
IDE 提示 “GitLab versions older than 14.0 are not supported” 的深度排查与解决方案
ide·gitlab
惜年_night2 天前
Docker部署05-GitLab的CI-CD发布
ci/cd·docker·gitlab
无人生还别怕3 天前
搭建gitlab服务并接入openldap认证
git·gitlab·github·openldap·ldap·统一认证
*_潇_*3 天前
0095__日常--记一次gitlab Runner配置与CI/CD环境搭建流程
ci/cd·gitlab
开发者联盟league4 天前
在ubuntu上使用apt方式安装gitlab
linux·ubuntu·gitlab
张小凡vip4 天前
gitlab的ci配置文件yaml参数说明
git·ci/cd·gitlab
田里的水稻4 天前
OE_gitlab服务操作和维护方法
分布式·gitlab
puamac5 天前
GitLab CI/CD 指南
gitlab