1、关于Gitlab CE / GitLab EE版本的区别:
Gitlab CE(Community Edition):Gitlab社区版,可以免费试用,无官方支持。
GitLab EE(Enterprise Edition):Gitlab企业版,需要购买License,功能更多,可以获取官方技术支持。

如果仅仅作为测试或者小团队使用,Gitlab CE可以满足要求了,本例也以Gitlab CE为基础部署。

为了测试方便,先关闭SELinux和Firewalld防火墙。
如果有防火墙需求,可以在系统配置完成后,安装iptables防火墙进行具体配置。

2、关闭SELinux:

[root@gitlab /]# sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config

3、关闭Firewalld防火墙:

[root@gitlab /]# systemctl stop firewalld
[root@gitlab /]# systemctl disable firewalld

以上设置需要重启系统后方可生效:

[root@gitlab /]# reboot

GitLab 的安装包和源码在国内下载速度不尽如人意,所以选择清华的源。

4、添加清华gitlab源:

[root@gitlab /]# 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
[root@gitlab /]# yum makecache

5、安装Gitlab社区版:

[root@gitlab /]# yum install gitlab-ce

6、初始化Gitlab服务:

[root@gitlab /]# gitlab-ctl reconfigure

到这里为止就可以通过ip地址来访问Gitlab服务了。

7、设置管理员密码:

8、用管理员账户登录:

9、登录成功!

如果是通过内网访问的话,就可以开始体验属于自己的Git服务器了!

如果需要通过域名来访问你的Gitlab服务,还需要进行如下配置:

10、修改Gitlab配置文件,来支持通过域名访问:

[root@gitlab /]# vim /etc/gitlab/gitlab.rb

修改如下条目(这里假定域名为git.xyzxyz.com):

external_url 'http://git.xyzxyz.com'

11、重启Gitlab服务,使设置生效:

[root@gitxx-gitlab /]# gitlab-ctl restart

12、这时就可以通过域名访问Gitlab了:

[THE END]

Gitlab安装简明文档的更多相关文章

  1. pycaffe简明文档

    pycaffe简明文档 by ChrisZZ, imzhuo@foxmail.com 2018年01月18日19:00:56 说明 caffe的python接口没有官方说明文档,例如查看一个函数的用法 ...

  2. Mock简明文档

    Mock简明文档 Mock.mock() Mock.mock( requestUrl?, requestType?, template|function(options) ) Mock.mock( t ...

  3. MongoDB配置简明文档

    1.下载MongoDB程序包(RHEL 7 Linux 64-bit x64) [root@mongodb /]# wget -P/usr/local/src/ https://fastdl.mong ...

  4. gitlab安装教程、gitlab官网、英文文档

    gitlab官网 https://about.gitlab.com/ gitlab安装和官网英文文档 https://about.gitlab.com/downloads/ 清华大学tuna镜像源 G ...

  5. Ubuntu gitlab安装文档及邮件通知提醒配置

    1.安装依赖包,运行命令 sudo apt-get install curl openssh-server ca-certificates postfix 2.由于gitlab官方源可能被“墙”,首先 ...

  6. GitLab安装说明

    GitLab,是一个使用 Ruby on Rails 开发的开源应用程序,与Github类似,能够浏览源代码,管理缺陷和注释,非常适合在团队内部使用. gitlab是基于Ruby on Rails的, ...

  7. gitlab安装与配置(Centos6.8)

    0.Centos7请参照官方文档 https://about.gitlab.com/installation/#centos-7 1. Install and configure the necess ...

  8. centos7.3 gitlab 安装配置

    1. 设备环境 硬件配置联想 TS250 E3-1225,16G内存,2X1 TB 软件CentOS-7-x86_64-DVD-1804.iso ,安装时选择桌面版 推荐配置参考:https://do ...

  9. OpenMediaVault GitLab 安装

    /**************************************************************************** * OpenMediaVault GitLa ...

随机推荐

  1. dedecms织梦上下页标签和CSS

    模板中的分页部分源码: <div class="pagination-wrapper" style= "font-size:20pt;color:red;text- ...

  2. vue路由懒加载 及import

  3. C# Dictionary 函数解析及使用方法

    要使用Dictionary集合,需要导入C#泛型命名空间 System.Collections.Generic(程序集:mscorlib)  Dictionary的描述 1.从一组键(Key)到一组值 ...

  4. eclipse 使用Git教程

    做一夜搬运工: https://www.cnblogs.com/heal/p/6427402.html https://blog.csdn.net/fan510988896/article/detai ...

  5. C# -- 泛型的使用

    C# -- 泛型的使用 1. 使用泛型 class Program { static void Main(string[] args) { ; string str = "Hello&quo ...

  6. 在html代码中js的script标签建议放在那里?

    今天编写了一个简单的js代码,F12有错误,然后发现是<script>放的位置有问题.之前在我的印象当中,说的是这个标签放在哪里都可以,然而...并不是这样的,例如我现在练习的这个代码,写 ...

  7. [LeetCode] 22. 括号生成

    题目链接:https://leetcode-cn.com/problems/generate-parentheses/ 题目描述: 给出 n 代表生成括号的对数,请你写出一个函数,使其能够生成所有可能 ...

  8. RequestMapper

    @RequestMapping(value = "/v1/getAllUrl", method = RequestMethod.POST) public Object getAll ...

  9. 毕业设计(2):基于MicroPython的家庭可燃气体泄露微信报警器

    在我们平时的生活中,经常看到因气体泄漏发生爆炸事故的新闻.房屋起火.人体中毒等此类的新闻报道层出不穷.这种情况下,人民就发明了可燃气体报警器.当工业环境.日常生活环境(如使用天然气的厨房)中可燃性气体 ...

  10. css3动画和animate.css动画库使用

    CSS3动画 css3动画可以分为两种.transition过渡动画和keyframes关键帧动画 过渡动画 第一种叫过渡(transition)动画,就是从初始状态过渡到结束状态这个过程中所产生的动 ...