代码编织梦想

1. 安装依赖库

yum install curl openssh-server postfix cronie -y
systemctl start postfix
systemctl enable postfix.service

2. 创建git用户

useradd git

3. 配置yum源

# vim /etc/yum.repos.d/gitlab-ce.repo
#输入以下内容
[gitlab-ce]
name=Gitlab CE Repository
baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever/
gpgcheck=0
enabled=1

这里用的是清华大学的镜像源安装GitLab

然后生成一下yum的缓存,并使用yum安装。

yum makecache
yum install gitlab-ce #自动安装最新版

安装成功会有下面的提示:

Thank you for installing GitLab!
GitLab was unable to detect a valid hostname for your instance.
Please configure a URL for your GitLab instance by setting `external_url`
configuration in /etc/gitlab/gitlab.rb file.
Then, you can start your GitLab instance by running the following command:
  sudo gitlab-ctl reconfigure

For a comprehensive list of configuration options please see the Omnibus GitLab readme
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md

Help us improve the installation experience, let us know how we did with a 1 minute survey:
https://gitlab.fra1.qualtrics.com/jfe/form/SV_6kVqZANThUQ1bZb?installation=omnibus&release=15-4

  验证中      : gitlab-ce-15.4.1-ce.0.el7.x86_64                                                  1/1 

已安装:
  gitlab-ce.x86_64 0:15.4.1-ce.0.el7                                                                  

完毕!

4. 默认存放位置 

代码仓库保存位置:/var/opt/gitlab/git-data/repositories/
代码仓库备份位置:/var/opt/gitlab/backups/
postgresql数据及配置目录:/var/opt/gitlab/postgresql/data/
redis默认配置目录:/var/opt/gitlab/redis
gitlab主要配置文件:/etc/gitlab/gitlab.rb

5. 设置gitlab访问地址:

#vim /etc/gitlab/gitlab.rb

#找到 external_url 改成你的地址和商品

external_url 'http://***ip地址或域名:81'

6. 初始化, 启用服务 

#gitlab-ctl reconfigure

7. 设置root密码

执行完上面的代码,会有下面的提示信息:

Default admin account has been configured with following details:
Username: root
Password: You didn't opt-in to print initial root password to STDOUT.
Password stored to /etc/gitlab/initial_root_password. This file will be cleaned up in first reconfigure run after 24 hours.
 

根据提示信息root的密码默认保存在: /etc/gitlab/inital_root_password 中;

输入你在第5步中设置的密码:

8. 配置邮箱

可以翻一下我以前配置写的如何发送邮箱

9. 管理配置

 登录后会收到上面的提示,是否要关闭公开 注册 ;点击上图中的:Turn Off然后如下图,关闭注册:

红圈处,取消选中。 

10. 修改root密码

然后选择: Preferences

选择左侧的 Password就可以修改密码了。

11 . 添加用户

点击左上角的三条杠的菜单,选择Admin

选择左侧的Users 然后选择右侧的New user 

(完)

 

 

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/hotlinhao/article/details/127132057

centos7搭建gitlab-ce & gitlab-runner_chinoukin的博客-爱代码爱编程

一.安装gitlab社区版 注意:gitlab-ce即为社区版,是免费的,gitlab-ee为企业版,是收费的 1.安装sshd sudo yum install -y curl policycoreutils-python openssh-server sudo systemctl enable sshd sudo systemctl start

linux安装和汉化GitLab-ce社区版(centos7)-爱代码爱编程

文章目录 一、yum安装gitlab二、汉化gitlab三、使用gitlab管理员root账户密码登陆gitlab,创建Project四、安装git,测试上传、下载五、使用命令重置GitLab管理员root账户密码 软件版本号查询命令GitLabgitlab-ce-11.11.8-ce.0.el7.x86_64rpm -qacentos7Cen

centos7安装gitlab-ce社区版全过程,详细到爆炸-爱代码爱编程

目录 一、准备工作 二、正式安装过程 三、配置gitlab完成初始化工作 四、浏览器访问 五、需要注意的地方:重点,圈起来要考 前言:由于公司之前一直使用的svn进行的代码管理。然后这次公司服务器惨遭黑客攻击。svn无法使用。之前使用过gitlab分布式代码管理,觉得甚是好用,趁着这个机会,搭建一个社区版的gitlab-ce代码仓库。适合中小型

Centos7系统下配置Git服务器(4)--yum安装配置GitLab-CE-爱代码爱编程

0x0 GitLab介绍 gitlab 不用说,大家都知道是做什么的,gitlab 分为 Gitlab Community Edition(gitlab社区版又称gitlab-ce)、Gitlab Enterprise Edition(gitlab企业版又称gitlab-ee);ce和ee的区别在于ce的功能在ee里面都有,而EE里有的功能CE

Centos7下安装gitlab(gitlab-ce-12.3.5-ce.0.el7.x86_64.rpm)-爱代码爱编程

本次使用rpm的方式安装 1.下载地址 https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-12.3.5-ce.0.el7.x86_64.rpm 2.通过FTP工具将包上传至服务器 3.或者使用wget下载 wget https://mirrors.tuna.tsingh

centos8安装gitlab-ce-爱代码爱编程

  知识了解: GitLab有三个不同的版本可用:Community Edition(CE)、Enterprise Edition(EE)和 GitLab托管版本。其中CE版本是开源免费的。EE版本是企业版,需要付费使用的。 推荐: cpu核心数量为4核,内存大小为4GB,磁盘大小为60G 1.安装gitlib前需要更新一下系统 yum upd

如何在Centos8中安装GitLab-CE-爱代码爱编程

GitLab是一个基于web界面的Git仓库管理程序,包括代码审计、wikis、问题跟踪等功能。使用GitLab创建、检查和部署代码非常容易。它可以托管在我们自己的服务器上,在官方服务器也提供免费的仓库托管,类似于Github。GitLab有三个不同的版本可用:Community Edition(CE)、Enterprise Edition(EE)和 Gi

yum 安装 gitlab 及 gitlab-runner安装-爱代码爱编程

CentOS7下yum安装GitLab-CE 前提准备 建立git用户(如果是测试,可直接用root安装) useradd git passwd git关闭防火墙 systemctl stop firewalld systemctl disabled firewalld安装依赖库 yum install curl openssh-server postf

centos7安装gitlab-ce-13.0.12-爱代码爱编程

前提:已关闭selinux和防火墙并配置好yum源 内存建议4G,cpu建议2核 1、安装依赖 yum install -y curl policycoreutils-python openssh-server perl systemctl enable sshd systemctl start sshd yum install postfix syst

centos gitlab mysql_CentOS-7下yum安装GitLab-CE-爱代码爱编程

GitLab介绍 gitlab 不用说,大家都知道是做什么的,gitlab 分为 Gitlab Community Edition(gitlab社区版又称gitlab-ce)、Gitlab Enterprise Edition(gitlab企业版又称gitlab-ee);ce和ee的区别在于ce的功能在ee里面都有,而EE里有的功能CE不一定支持。如

centos 安装gitlab-ce 13-爱代码爱编程

centos 安装gitlab-ce 13 # 添加yum源: vim /etc/yum.repos.d/gitlab-ce.repo [gitlab-ce] name=Gitlab CE Repository baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever

Centos8.x 安装 GitLab-爱代码爱编程

文章目录 一、Centos8.x 安装 GitLab1.1 查看系统信息1.2 配置源1.3 安装 GitLab1.4 配置 GitLab1.5 启动验证 一、Centos8.x 安装 GitLab 1.1 查看系统信息 # ubuntu cat /etc/lsb-release # centos cat /etc/redhat-relea

gitlab-ce安装-爱代码爱编程

gitlab-ce安装 sentos 下载 wget http://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-12.9.0-ce.0.el7.x86_64.rpm --2021-12-27 10:42:25-- http://mirrors.tuna.tsinghua.edu

centos7安装 gitlab-ce-14.7.7_herionzhang的博客-爱代码爱编程

centos7安装 gitlab-ce-14.7.7 安装前准备 安装 SSH sudo yum install -y curl policycoreutils-pythonopenssh-server yum -y install policycoreutils openssh-serve openssh-clients postfix 安装

centos 7下yum安装gitlab ce_咔咔胡说的博客-爱代码爱编程

一、概述 GitLab是一个利用Ruby on Rails开发的开源应用程序,实现一个自托管的Git项目仓库,可通过Web界面进行访问公开的或者私人项目。它拥有与GitHub类似的功能,能够浏览源代码,管理缺陷和注释。可以