Centos7部署gitlab

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

1、安装必要的依赖

sudo yum install -y curl policycoreutils-python openssh-server perl

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

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

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

vim /etc/gitlab/gitlab.rb

更改 https://gitlab.example.com 为您要访问极狐GitLab 实例的 URL
Centos7部署gitlab_第1张图片
更改配置选项之后,需要重新加载配置文件

gitlab-ctl reconfigure

启动命令

gitlab-ctl start

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

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

Centos7部署gitlab_第2张图片

你可能感兴趣的:(gitlab)