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

相关推荐
cuijiecheng20181 天前
GitLab创建项目
gitlab
_运维那些事儿3 天前
GitLabCI/CD语法
linux·服务器·git·ci/cd·gitlab·运维开发·devops
_运维那些事儿3 天前
GitLab&Jenkins
运维·ci/cd·gitlab·jenkins·devops
Jeacean4 天前
gitlab 仓库所有分支开启分支保护脚本
gitlab
nhfc994 天前
Gitlab备份且提交Windows服务器数据
服务器·windows·gitlab
Knight_AL4 天前
Jenkins 配置 GitLab 认证并实现自动化部署
自动化·gitlab·jenkins
危笑ioi5 天前
docker部署jenkins/gitlab/nexus3/nginx配置端口转发与ssl
nginx·docker·gitlab·jenkins·ssl
木易 士心7 天前
GitLab 安装指南
git·gitlab
Linux运维技术栈7 天前
GitLab社区版备份优化:3M包为何是独立完整备份?
运维·git·gitlab
z.q.xiao8 天前
【镜像模式】WSL如何访问windows内网服务
linux·网络·windows·gitlab·wsl·dns